Passing page URL parameter to controller in Laravel 5.2
问题 In my application I have a page it called index.blade , with route /index . In its URL, it has some get parameter like ?order and ?type . I want to pass these $_get parameter to my route controller action, query from DB and pass its result data to the index page. What should I do? 回答1: If you want to access the data sent from get or post request use public function store(Request $request) { $order = $request->input('order'); $type = $request->input('type'); return view('whatever')->with(