laravel 5.5多次验证错误'InvalidArgumentException未定义验证用户提供程序[]

时间:2018-03-29 16:37:50

标签: php laravel laravel-5

错误是

  

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

中遇到错误

0 个答案:

没有答案