adding where clause to router get #73
|
I need to add this "where clause" to my route:
This is so that my search can contain forward slashes, such as:
My route call looks like this:
I'd like to change it to something like this:
But that doesn't work. I get:
In Laravel, I think I'd be able to do this:
|
Replies: 2 comments 3 replies
|
Most likely I'll just put the string that may contain a forward slash into a query parameter... Still, I'd like to know how to add a Where clause to the route specification. |
|
Leaf router does not use |


Leaf router does not use
whereto handle regex, it has it's own system for handling operations like this. You can find the documentation here