skip to Main Content

Laravel send query string with optional parameters – SEO

I have my route set as Route::any('/{brand?}/{type?}/{city?}', 'SearchController@index')->name('search'); I want to send from my controller query strings (Form GET params) After searching I ended up with this but it does not work properly return redirect()->route('search', [$brand->name, $type->name, 'search_model_from' => $request->search_model_from,…

VIEW QUESTION
Back To Top
Search