Unfortunately not. Route groups were not designed to do this. This is taken from Laravel docs.
Route groups allow you to attach a set of attributes to a route group, which allows you to keep your code neat and tidy.
A route group is used to apply one or more filters to a route group. What you are looking for are packages!
Getting to know the packages!
Ligaments are what you need in the appearance of things. Create a new package called "admin" in your packages directory and register it in the application / bundles.php file, something like this:
'admin' => array( 'handles' => 'admin' )
The handle key allows you to change which URI the packet will respond to. Thus, in this case, admin calls will be made through this package. Then in your new package create a route.php file and you can register the handler using (: bundle) .
// Inside your bundles routes.php file. Route::get('(:bundle)', function() { return 'This is the admin home page.'; }); Route::get('(:bundle)/users', function() { return 'This responds to yoursite.com/admin/users'; });
Hope you get some ideas.
source share