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 validationMessages method returns an array with all the validation messages for your model's public properties.
$productRules = Product::validationMessages();
// WILL RETURN
[
'name' => [
'required' => 'The PRODUCT NAME field cannot be empty.',
],
]
How can I help you explore Laravel packages today?