wendelladriel/laravel-lift
Experimental Laravel package that supercharges Eloquent models with typed public properties matching your schema, powered by PHP 8 attributes. Add validation rules and other metadata directly on models and access them via handy methods, using Eloquent events for easy drop-in use.
The validationRules method returns an array with all the validation rules for your model's public properties.
$productRules = Product::validationRules();
// WILL RETURN
[
'name' => ['required', 'string'],
'price' => ['required', 'numeric'],
'random_number' => ['required', 'integer'],
'expires_at' => ['required', 'date_format:Y-m-d H:i:s'],
]
How can I help you explore Laravel packages today?