Illuminate\Auth\EloquentUserProvider::validateCredentials()

預顏發表於2022-05-05

錯誤:

### Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable

Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Models\Admin\Manager given, called in E:\Programming\Php\Laravel\edu.28sjw\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 422

解決方法如下

原文:
Laravel8 Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Models\Admin\Manager given, called in E:\Programming\Php\Laravel\edu.28sjw\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 422
改成:

Laravel8 Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Models\Admin\Manager given, called in E:\Programming\Php\Laravel\edu.28sjw\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 422

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章