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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community