我无法在视图HTML表单的操作标签中传递URL。
<form method="post" action="??what to write here??" accept-charset="UTF-8">
我希望将其操作设置为
WelcomeController
文件中的log_in
函数,在控制器中。以下是我的路由:
Route::get('/','WelcomeController@home');
Route::post('/', array('as' => 'log_in', 'uses' => 'WelcomeController@log_in'));
Route::get('home', 'HomeController@index');
提交后URL不变。
http://localhost:8000/
主要错误行
Whoops, looks like something went wrong.
之后出现了 1/1 TokenMismatchException in compiled.php line 2440: