Krishzzi
get_class(): Argument #1 ($object) must be of type object, null given Filament::auth()
the test passed when I do like this.
So, when I do login with filament Filament::auth()->login($user);
then the it gets Filament::auth()::user(),
is actingAs() not enough for authenticate user
11 replies
get_class(): Argument #1 ($object) must be of type object, null given Filament::auth()
I already pass the guard when actingAs
like this..
etc.
but still not working. I pass guard with individual user models while actingAs but Filament::auth::user() or any method chained to it fails for null
11 replies
get_class(): Argument #1 ($object) must be of type object, null given Filament::auth()
I have 5 different panels with 5 different user models and guards.
for each panel I have applied the specific guard with the authGuard function
how do I test this panels seperately because filament::auth() function does not work in test.
11 replies