Answer the question
In order to leave comments, you need to log in
How to make url with parameters in Laravel 5?
You need to make a url with an indefinite number of parameters, 2 of which are arrays. I want to search like this.
For example:
kino.com/{category?}/{country?}/{actors?}/{eactors?}/
kino.com/komedii/kanada/actors/45/154/eactors/67/99
kino.com/uzhasyi
kino.com/rossiya/eactors/56/87/34
Answer the question
In order to leave comments, you need to log in
You yourself answered your own question.
It is better to transfer the list of actors separated by commas (or something else), and then using explode(); pull out the data.
Or with the help of regular expressions - actors[\/0-9]*/eactors[\/0-9]* // sketch, finish it yourself, I just described how to do it, I forgot how Laravel routes specify regular expressions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question