I am trying to redirect
to a route from a controller
in laravel
. I am doing this:
return redirect()->route('deals/view/' . $inputs['id']);
The route
defined is like this:
Route::get('deals/view/{id}', 'DealsController@view');
when the code runs it throws this exception
:
InvalidArgumentException in UrlGenerator.php line 314: Route [deals/view/1] not defined.
When I try to access it directly in the browser
it works fine. How to do it? Any help?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire