B
B
Boooom2019-11-24 17:13:43
Laravel
Boooom, 2019-11-24 17:13:43

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=12in 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

1 answer(s)
N
Nikolai Smirnov, 2019-11-28
@Bzdykin

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 question

Ask a Question

731 491 924 answers to any question