<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
Whoops, looks like something went wrong.
1/1 FatalErrorException in User.php line 9: Trait 'App\Illuminate\Auth\Authenticatable' not found in User.php line 9
namespace App;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
class User extends Model implements Authenticatable
{
use Illuminate\Auth\Authenticatable;
}
I am using laravel 5.2 version
最佳答案
\App
是您默认的第一个命名空间。 \Illuminate
是它自己的。将 Illuminate
的实例更改为 \Illuminate
,它应该可以解决问题。
关于php - laravel 中的意外错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36966109/