【发布时间】:2017-05-03 08:16:21
【问题描述】:
我做了一些事情,现在当我尝试使用标准的 Laravel Auth implimentation 登录时,出现以下错误
User.php 第 9 行中的 FatalErrorException:类 'Illuminate\Foundation\Auth\User' 未找到
编辑 /vendor/laravel/framework/src/Illuminate/Foundation/Auth 中不存在 User.php 并且 composer update 没有修复它
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* 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',
];
}
【问题讨论】: