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:
|
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
Leaf router does not use |
Beta Was this translation helpful? Give feedback.
Leaf router does not use
where
to handle regex, it has it's own system for handling operations like this. You can find the documentation here