我收到了帖子请求的空白页面,但代码在get方法中运行良好。
这是我的表格代码:
<form class=`search_form` action=`index.php/packages` method=`post`>
<div class=`search domain_search`>
<div class=`input_box`>
<input type=`text` id=`emailText` placeholder=`Your Business Name...` class=`user_name` onkeyup=`emailsearch()` name=`subDomainText`>
<input id=`token` name=`token` type=`hidden` value=`{{$encrypted_token}}`>
</div>
<div class=`input_button_box`>
<input class=`btn-seconsdary` type=`submit` value=`Submit`></div>
<div class=`clearfix`></div>
</div>
</form>
路线:
Route::post(`domainsearch`, `siteController@domainsearch`);
控制器:
public function domainsearch()
{
$data[`user`] = \Input::get(`subDomainText`);
return view(`email_search`,$data);
}