You can use regex in the first parameter of the get()
method to combine those.
See section Regular Expression Route Constraints in the docs.
Something like this might work:
Route::get('project/{name}', function($name)
{
//
})
->where('name', '[A-Za-z0-9\/]+');
Where the regex will match URLs such as /projects/something/anything
. However that might be too loose - it will also match /projects/any/number/of/url/segments
. But I believe some more RegEx can help make better constraints to get closer to what you're looking for.