Laravel offers the possibility to add regular expression constraint to a route like this:
Route::get('user/{name}', function($name)
{
//
})
->where('name', '[A-Za-z]+');
it is also possible to create multiple routes for a resource:
Route::resource('photo', 'PhotoController');
I want to add regular expression constraint only to the route GET /photo/{id}
is that possible?