shared._errors 和 Auth::user () 两个问题?
问题1:
session/create.blade.php 加上 @include('shared._errors') 就报错
View [shared._errors] not found. (View: .../Apps/sample/resources/views/session/create.blade.php)
去掉可以正常显示,不过,也不显示Email password 校验信息。
问题2:
session()->flash和 [Auth::user()] 似乎都没有生效,
使用 redirect()->route('users.show',1); 可以正常显示
使用 route('users.show' , [Auth::user()]);就会报错
BadMethodCallException
Method [index] does not exist on [App\Http\Controllers\UserController].
注:环境是composer 生成的 ,运行环境是阿里云 ubunt 32位系统,nginx+php7,非homestead 盒子。憋了好久也不知道什么原因,似乎是缺少什么配置了。麻烦大神帮忙指点
推荐文章: