我正在研究laravel 5.3。我在这里用过
if(Auth::attempt(['username'=>$username,'password'=>$password]))
但显示错误Authentication user provider [] is not defined in larval 5.3
。我在laravel 5.2中遇到此错误
答案 0 :(得分:0)
试一试:
php artisan make:provider MerchantServiceProvider
并在app / config.php部分提供程序中使用它:
App\Providers\RouteServiceProvider::class ,