dvdty
dvdty
FFilament
Created by dvdty on 8/14/2023 in #❓┊help
Eloquent events via closures break the Resource page
My model has a event like this:
public static function boot(): void
{
static::created(function (Rating $rating): void {
$rating->ratable->recalculateRating();
});
}
public static function boot(): void
{
static::created(function (Rating $rating): void {
$rating->ratable->recalculateRating();
});
}
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)
8 replies