laravel 5.2,“添加成功”的提示彈不出來(lái),代碼跟老師一樣的。。
<frameset rows="88,*" >
<frame src="top.html" title="topFrame" />
<frameset cols="187,*" frameborder="no" border="0" framespacing="0">
<frame src="left.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="top.html" title="topFrame" />
<frameset cols="187,*" frameborder="no" border="0" framespacing="0">
<frame src="left.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
2016-10-31
老師給input添加name值時(shí),name="Student[***]",為什么要這樣寫,有什么講究嗎
不知道3以下的版本是怎樣,不過(guò)我用的5.3可以這樣寫{{ Request::is('student/create') ? 'active' : '' }}非常方便
laravel 默認(rèn)開(kāi)啟了 csrf驗(yàn)證 ,post請(qǐng)求需要驗(yàn)證csrf,所以要在表單里 加個(gè)隱藏域
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
不然就會(huì)報(bào)錯(cuò):TokenMismatchException in VerifyCsrfToken.php line 68:
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
不然就會(huì)報(bào)錯(cuò):TokenMismatchException in VerifyCsrfToken.php line 68:
我把response放到session所在路由群組,重定向傳值成功:
Route::group(['middleware' => ['web']],function () {
Route::any('session1','StudentController@session1');
Route::any('session2','StudentController@session2');
Route::any('response','StudentController@response');
});
但是視頻中的并沒(méi)有這么做session2也可以接收到message啊。。。
Route::group(['middleware' => ['web']],function () {
Route::any('session1','StudentController@session1');
Route::any('session2','StudentController@session2');
Route::any('response','StudentController@response');
});
但是視頻中的并沒(méi)有這么做session2也可以接收到message啊。。。
2016-10-25
若出現(xiàn)以下問(wèn)題Fatal error: Call to undefined function Illuminate\Encryption\openssl_encrypt()
請(qǐng)?jiān)趐hp.ini中相應(yīng)位置添加extension=php_mcrypt.dll
請(qǐng)?jiān)趐hp.ini中相應(yīng)位置添加extension=php_mcrypt.dll
2016-10-20