Commit f126de80 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

changed Quicktips URL to read search query from URL Parameter instead of route parameter

parent 8f177848
...@@ -267,8 +267,13 @@ class MetaGerSearch extends Controller ...@@ -267,8 +267,13 @@ class MetaGerSearch extends Controller
->with('tips', $tips); ->with('tips', $tips);
} }
public function quicktips($search) public function quicktips(Request $request)
{ {
$search = $request->input('search', '');
if(empty($search)){
abort(404)
}
$quicktips = new \App\Models\Quicktips\Quicktips($search); $quicktips = new \App\Models\Quicktips\Quicktips($search);
return view('quicktips') return view('quicktips')
->with('quicktips', $quicktips->getResults()) ->with('quicktips', $quicktips->getResults())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment