I want to create a route using Laravel 8 that will allow for a number of multiple and optional parameters. For example, if this route was displaying a list of people, it could be something like any of the following:
- /people
- /people/age/24
- /people/hair/brown/age/30
- /people/status/4
Or if it's easier something like this:
- /people
- /people/age-24
- /people/hair-brown/age-30
- /people/status-4
The parameters are all optional. The order should not matter. If possible I would like to do this without the use of a controller.
Thanks!