P
P
photosho2016-01-06 21:23:02
Laravel
photosho, 2016-01-06 21:23:02

How to implement a list of parameters in a route?

As far as I understand, the address with GET parameters in Laravel is built like this:

site.ru/users/param/value

How many such parameters can be added to a line? If there are many parameters, then the address bar looks unusual and strange. Or am I wrong? Something like this looks much more familiar:
site.ru/users?param=value

Perhaps I don't understand something? Is it possible to somehow implement a more familiar type of parameters in the address bar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-01-06
@photosho

If there are many parameters, then like this:
If there are few, then like this:
site.ru/users/{user}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question