Eloquent events via closures break the Resource page
My model has a event like this:
When I un-comment this method the recourse page breaks, is this a known issue? The resource page itself is quite simple (created with the --generate command)
5 Replies
What error are you getting exactly?
Undefined array key "App\Models\Rating"
this is where it's coming from:
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
does it works if not in filament context?
Solution
it does
Just found the fix I had to add parent::boot(); in the override boot method