Route::group(['middleware' => 'web'], function () {
Route::any('session1',['uses'=>'StudentController@session1']);
Route::any('session2',['uses'=>'StudentController@session2']);
});
Route::any('student/response',['uses'=>'StudentController@response']);
無法通過response'重定向訪問session2
Route::any('session1',['uses'=>'StudentController@session1']);
Route::any('session2',['uses'=>'StudentController@session2']);
});
Route::any('student/response',['uses'=>'StudentController@response']);
無法通過response'重定向訪問session2
2017-11-22
使用中間件后路由無法訪問BadMethodCallException
Method get does not exist.
Method get does not exist.
2017-11-17
上學期學php的時候,原生代碼打的分頁,記得我痛苦死了,laravel就兩行代碼搞定?。?!炸了炸了!!
2017-11-15
報TokenMismatchException錯誤,要加一條input語句這條語句為<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
2017-11-12
科普一下:往Session內存json數據
先準備好Json數據,轉換成數組就可以添加進去了
Session::put(json_decode('{"a":1,"b":2,"c":3,"d":4,"e":5}',JSON_FORCE_OBJECT))
雖然這樣有點多此一舉的感覺,但有這個方法總比沒有的好吧……
先準備好Json數據,轉換成數組就可以添加進去了
Session::put(json_decode('{"a":1,"b":2,"c":3,"d":4,"e":5}',JSON_FORCE_OBJECT))
雖然這樣有點多此一舉的感覺,但有這個方法總比沒有的好吧……
2017-11-09