Type error: Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\User given, called in /vagrant/Code/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 379
Similar errors arise when using custom guards:
Type error: Argument 1 passed to Tymon\JWTAuth\JWTGuard::__construct() must be an instance of Tymon\JWTAuth\JWT, instance of Illuminate\Auth\EloquentUserProvider given, called in /vagrant/Code/app/Providers/AuthServiceProvider.php on line 32",
Expected Behaviour
It should pass without errors.
Steps to Reproduce
Install sentinel change User extends to Cartalyst\Sentinel\Users\EloquentUser instead of Authenticable
Possible Solutions
Overriding classes, building custom providers. All seems wrong in respect to future updates in packages...
Solutions on the web
None actually working, so far for laravel 5.5... But there are some explanations, for earlier laravel versions. Not tested though...
Actual Behaviour
Type error: Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\User given, called in /vagrant/Code/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 379
Similar errors arise when using custom guards:
Type error: Argument 1 passed to Tymon\JWTAuth\JWTGuard::__construct() must be an instance of Tymon\JWTAuth\JWT, instance of Illuminate\Auth\EloquentUserProvider given, called in /vagrant/Code/app/Providers/AuthServiceProvider.php on line 32",
Expected Behaviour
It should pass without errors.
Steps to Reproduce
Install sentinel change User extends to Cartalyst\Sentinel\Users\EloquentUser instead of Authenticable
Possible Solutions
Overriding classes, building custom providers. All seems wrong in respect to future updates in packages...
Solutions on the web
None actually working, so far for laravel 5.5... But there are some explanations, for earlier laravel versions. Not tested though...