laravel 5.2 post路由报错
表单部分
<form action="login" method="post">
<input type="hidden" name="_token" value="{{csrf_token()}}">
<input type="submit" value="post">
</form>
路由部分
Route::post('login',function(){
return 'ths is post';
});
get路由没问题 访问post路由就报错
Sorry, the page you are looking for could not be found.
1/1
NotFoundHttpException in Controller.php line 93:
Controller method not found.
请问这个是什么问题?
1 个回复
Berry1526
赞同来自:
public function store(){}