Support the ongoing development of Laravel.io →
Installation Configuration Requests
Last updated 2 weeks ago.
0

Eh, so basically I went w/ the following

 Route::any('/{id}/{optional?}', '[email protected]', function($id, $optional) {})
 ->where(array('id' => '(\d+)-?([A-Za-z0-9-_]+)?'));

Which isn't what I really wanted since I have to split the id w/ another regex check in the actual controller

Last updated 2 weeks ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

G4MR G4MR g4mr Joined 10 Feb 2014

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.