建議不熟悉 中間件 的來看一下這里的資料學(xué)習(xí)一下
https://laravel-china.org/topics/687
講師似乎忘了給講這個東西了,在這節(jié)課程里剛開始就操作中間件可能會把人搞得一頭霧水...
https://laravel-china.org/topics/687
講師似乎忘了給講這個東西了,在這節(jié)課程里剛開始就操作中間件可能會把人搞得一頭霧水...
2017-01-06
在StudentController.php 里加上 use Session; 就可以解決Class 'App\Http\Controllers\Session' not found的問題了,親測有效!
2017-01-05
To use the class from the global namespace, place:
use Session;
on top of your controller, after your namespace declaration
Alternatively, you can call the class from the global namespace with:
\Session::get('panier');
use Session;
on top of your controller, after your namespace declaration
Alternatively, you can call the class from the global namespace with:
\Session::get('panier');
2017-01-05
感覺再講深入點比較好,講得太快,沒有思考的時間。
哈哈,我要1個視頻看2次以上才能理清所做的工作,及代碼對應(yīng)的工作。
哈哈,我要1個視頻看2次以上才能理清所做的工作,及代碼對應(yīng)的工作。
2016-12-27
這么寫可以達(dá)到同樣效果,為什么要寫uses呢?
Route::any('session5','HomeController@session1');
Route::any('session6','HomeController@session2');
Route::any('session5','HomeController@session1');
Route::any('session6','HomeController@session2');
2016-12-26
5.2版本可以這樣
Route::get('home', function () {
// 從session中獲取數(shù)據(jù)...
$value = session('key');
// 存儲數(shù)據(jù)到session...
session(['key' => 'value']);
});
Route::get('home', function () {
// 從session中獲取數(shù)據(jù)...
$value = session('key');
// 存儲數(shù)據(jù)到session...
session(['key' => 'value']);
});
2016-12-26
delete 這么寫會受到 CSRF攻擊,應(yīng)該在傳參的時候加上token,并在控制器驗證token,驗證成功再刪除
2016-12-25
老師講的很好,之前自己一直看文檔,學(xué)的不多,現(xiàn)在用這么短時間的,就可以講清楚這么多東西。 不過自己還要在多去做練習(xí) 才能熟練
2016-12-24