Replies: 1 comment
-
I think, the problem is, that while Laravel has |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there are several methods in routing for input control (https://laravel.com/docs/10.x/routing#parameters-regular-expression-constraints - whereAlphaNumeric, whereNumber). A common practice is to use names in the URL, created with Str::slug e.g. /article/{slug}.
Perhaps a cool option would be to add a validator consistent with the one generated by Str::slug method?
Beta Was this translation helpful? Give feedback.
All reactions