You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it's not the guard actually, it's the default User model.
Which has been hardcoded in the DefaultPolicy stub.
It's on my todo list to make it configurable via settings page, but haven't gotten to it yet.
So either make a PR or wait another week or so.
And to Solve your current Problem you would need to update the DefaultPolicy to use App\Models\Admin then run the shield:generate command.
I have two guards
web
for frontend forUser
model andadmin
guard for filament forAdmin
model.So in
filament.php
config file I have:when I use
php artisan shield:install
or generate from the admin panel it generates the policies for the default gaurd not for the filament guardThe text was updated successfully, but these errors were encountered: