報錯:Symfony \ Component \ HttpKernel \ Exception \ AccessDeniedHttpException
This action is unauthorized
This action is unauthorized
2017-09-09
好吧!$this->validate驗證信息無法顯示原因找到了!
就是Aosora說的中間件的問題,把路由移出中間件就好了
就是Aosora說的中間件的問題,把路由移出中間件就好了
2017-09-09
其實不單單是sex會出現報錯 name框和age框也會出現報錯 因為當創建的時候沒有student的值而他要使用該值則會報錯 解決方法:
{{old('name') ? old('name') : (isset($student->name) ? $student->name : '') }}
寫兩個三元運算符 當他的否則沒有的話則判斷student是否存在 如果存在則使用 否則則使用空字符串 這樣就不會報錯了 不懂私信我
{{old('name') ? old('name') : (isset($student->name) ? $student->name : '') }}
寫兩個三元運算符 當他的否則沒有的話則判斷student是否存在 如果存在則使用 否則則使用空字符串 這樣就不會報錯了 不懂私信我
2017-09-08
5.2.45版本中,將Route::group(['middleware'=>['web']],function(){
});的路由拿出來就能得到錯誤信息。
});的路由拿出來就能得到錯誤信息。
2017-09-04
補充一下 $res = $next($request);return $res; 只寫個return 也要報同樣的錯誤。
2017-09-02
5.4版本中間件后置操作結尾不return的話會報Trying to get property of non-object錯誤
2017-09-02
返回上一頁面back()使用的路由,不能在路由群組中,而是要單獨寫一條路由:
Route::any('response', ['uses' => 'StudentController@response']);
Route::any('response', ['uses' => 'StudentController@response']);
2017-08-27