Argument #1 ($user) must be of type FilamentUser
imrancoder opened this issue · 4 comments
imrancoder commented
Chiiya\FilamentAccessControl\Policies\FilamentUserPolicy::viewAny(): Argument #1 ($user) must be of type Chiiya\FilamentAccessControl\Models\FilamentUser, App\Models\User given, called in
i have already updated filament config file auth.pages.login
value with \Chiiya\FilamentAccessControl\Http\Livewire\Login::class
chiiya commented
Did you update the guard as well?
'auth' => [
'guard' => env('FILAMENT_AUTH_GUARD', 'filament'),
Make sure that you're not overwriting FILAMENT_AUTH_GUARD
with a different value.
coder36 commented
coder36 commented
chiiya commented
Closing due to inactivity.
Make sure you use FilamentUser
in your policies and update your guard correctly.