Support the ongoing development of Laravel.io →

mikaeledstrom

Joined 29 Mar 2016

Statistics

Threads 1
Replies 1
Solutions 0
Articles 0

Laravel routing with regular expression

Hi! I would like to route these slugs: lorem-ipsum-123 lorem-ipsum-123-456 into two variables: $sl...

0 Likes
2 Replies
replied 8 years ago

Laravel routing with regular expression

I think I solved it with this code: Route::pattern('productId', '[0-9]*'); Route::pattern('slug', '[...

0 Likes

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.