Z3d0X / filament-logger

Extensible activity logger for filament that works out-of-the-box.
MIT License
276 stars 40 forks source link

In laravel 11 menu Activity Log not effect #103

Closed tenroaji closed 3 months ago

tenroaji commented 4 months ago

I use laravel 11 and i use shield for permission, i success generate ActivityPolicy but not effect.

this AuthServiceProvider

image

this regis AuthServiceProvider

image

and this ActivityPolicy

image

i try to check Users menu and effect but after try Activity menu not effect image

luigirossidev commented 3 months ago

Hi, according to new method of Registering Policies in Laravel 11

Edit boot() method of AppServiceProvider like this way:

public function boot(): void { Gate::policy(Activity::class, ActivityPolicy::class); }

It works for me.

tenroaji commented 3 months ago

public function boot(): void { Gate::policy(Activity::class, ActivityPolicy::class); }

nice, thanks its work for me too