it says:
Symfony Component Debug Exception FatalThrowableError (E_RECOVERABLE_ERROR)
Type error: Argument 1 passed to IlluminateAuthTokenGuard::__construct() must implement interface IlluminateContractsAuthUserProvider, null given, called in E:..............vendorlaravelframeworksrcIlluminateAuthAuthManager.php on line 159
DebugBar just shows you the error. It seems, that there is something wrong in your application, not DebugBar.
From the error I could suggest you to look at config/auth.php file and verify that user providers are in place.
yes,,,I know the reason ,that's what you say! I must add
'users' => [
'driver' => 'eloquent',
'model' => AppUser::class,
],
in config/auth.php providers,,,,,I deleted it a few days ago
Hi,
sorry for commenting on a closed issue but I've ran in to this exact issue now.
It seems that debugbar is using by default the "users" provider. In my case, I'm not using users but rather other table and model as my user..
would it be a good idea to check that dependency out?
thanks
Yes @ajaaleixo the same problem happens to me
@ahmad-sa3d thanks!
I'm bypassing this issue by simply using the default providers config for "users".. although I'm not using that config anywhere.. it runs perfectly fine but the dependency shouldn't exist, I suppose.
Can you create a PR?
there may also need to check with config if your provider is different than users; check config.auth.passwords
Fixed, the issue was in my config/auth.php file:
'api' => [
'driver' => 'token',
'provider' => 'users', // <-- Here: 'users' provider doesn't exist as I deleted it
],