当我尝试登录时,出现以下错误:
调用未定义的方法 Illuminate \ Auth \ DatabaseUserProvider :: getModel()
我正在使用Laravel 8:
authProvider auth0.php
:
'providers' => [
'users' => [
'driver' => 'database',
'table' => 'users',
],
],
我的作曲家.json文件:
"require": {
"php": "^7.4",
"ext-json": "*",
"econea/nusoap": "^0.9.10",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "7.0.1",
"laravel/framework": "8.0.*",
"laravel/jetstream": "1.2",
"laravel/sanctum": "^2.6",
"laravel/tinker": "^2.0",
"laravel/ui": ">=3.0",
"livewire/livewire": "^2.0",
"mustangostang/spyc": "^0.6.3"
}
输出: