错误是
InvalidArgumentException ... \厂商\ laravel \框架\ SRC \照亮\验证\ CreatesUserProviders.php42
配置/ auth.php
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
'admins' => [
'drivers' => 'eloquent',
'model' => App\Admin::class,
],
],
这是我的提供者数组
class Admin extends Authenticatable
{
use Notifiable;
protected $guard = 'admin';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
protected $table = 'admins';
}
这是我的管理模式
{{1}}
这在laravel 5.4中有效,但我在5.5
中遇到错误