Support the ongoing development of Laravel.io →
Security Requests Validation
Last updated 7 months ago.
0
Solution

Just happened I have searched for this topic yesterday. Quoted from StackOverflow: http://stackoverflow.com/questions/22622629/regular-expression...

So it looks like it would be done using beforeFilter somehow.

Cheers

Last updated 7 months ago.
0

If anybody is interested, I found a somewhat more elegant approach with named recourceful route parameters and global route patterns described here.

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.