亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

An error occurred when Laravel used the post method, but the get method can be run.
淡淡煙草味
淡淡煙草味 2017-05-16 16:50:36
0
1
867

The controller is as follows. View a search box and submit it to the search method of the controller below:

    public function search(Request $request)
    {
        $keywords= $request->input('keywords');
        $articles = Article::search($keywords)->get();
        return view('pages.search-list', compact('articles'));
    }

The result can be obtained normally using the get method, but the following error occurs when using the post method:

Want to know why.

淡淡煙草味
淡淡煙草味

reply all(1)
阿神

I guess your form uses post, but your route is Route::get();

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template