Answer the question
In order to leave comments, you need to log in
How to get parameter values from ULR - laravel?
Hello!
Tell me how to get the parameter values ?order=
from the link https://local.ru/admin/orders?order=12
in the route,
such a route is not working, but I don’t know what to do
Route::any('/admin/orders/{id}', 'admin\[email protected]');
Answer the question
In order to leave comments, you need to log in
Just don't use parameters as you don't need them in the vast majority. Form links as follows: https://local.ru/admin/orders/12
In the documentation section there is a handy table where you can see which verb (verb) is more appropriate to use in your route.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question