You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i am trying to redirect to a reversed route specified in my routes like this and i get this error. SYSTEMPATH/HTTP/Exceptions/HTTPException.php at line 146
I have tried also with the route_to function like this and it is still not working. return redirect()->route(route_to('App\Controllers\cms\banners::edit', $id_item));
the route_to function returning the string '/cms/banners/edit/30'
This is not a bug.
This redirect option is used in the case of named routes.
Maybe another redirect option is right for you: return redirect()->to('cms/banners/edit/'.$id_item);
Hello i am trying to redirect to a reversed route specified in my routes like this and i get this error.
SYSTEMPATH/HTTP/Exceptions/HTTPException.php at line 146
Here is my routes
And here is my code inside my controller
return redirect()->route('cms/banners/edit/'.$id_item);
When i submit the form i want to go to the edit page of the item.
It does not work.
When i go to the edit page of the item manually
https://example.com/cms/banners/edit/36
it works perfectly, the Route is working correctly.
The text was updated successfully, but these errors were encountered: