Laravel: How to redirect from controller to named route with params in URL


What would be the proper way to call a named route from my Laravel controller, but be able to include the parameters (such as the GET parameters, where I can pass an ID) ?


In Laravel, you can use the helper methods which is really super helpful and allows you to pass as many parameters as you defined in your route such as:

Route::get('/route/name/{id}/{name}', 'TestingController@fakeMethod')->name('');
return redirect()->route('', [
    'id' => 1,
    'name' => 'fake param'

About the author