📜  找不到类“\App\User” - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:38.590000             🧑  作者: Mango

代码示例2
Go to config/auth.php and change App\User:class to App\Models\User::class.

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => App\Models\User::class,
    ],
Also change the namespace of User.php model

namespace App\Models;