ErrorException with message 'include (/home/Vagrant/Code/LaraBBS): failed to open stream: Success'??
使用tinker进行调试出现错误!
'''''
$user = App\User::first();
ErrorException with message 'include(/home/vagrant/Code/LaraBBS): failed to open stream: Success'
Auth::guard('api')->fromUser($user);
PHP Notice: Undefined variable: user in Psy Shell code on line 1
'''''
User默认出现在App的根目录下,没有出现在Models的根目录下
推荐文章: