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

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

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

Cheers

Last updated 2 years 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!

Eventy

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.

© 2024 Laravel.io - All rights reserved.