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

Eh, so basically I went w/ the following

 Route::any('/{id}/{optional?}', 'HomeController@Index', 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 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

G4MR g4mr Joined 10 Feb 2014

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.