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 watchedProperties method returns an array with all the public properties that have a custom event set.
$productWatchedProperties = Product::watchedProperties();
// WILL RETURN
[
'price' => PriceChangedEvent::class,
]
How can I help you explore Laravel packages today?