Skip to content

Instantly share code, notes, and snippets.

@ulcuber
Last active July 25, 2018 08:07
Show Gist options
  • Save ulcuber/972ab701ed270179fce8a55c4f161591 to your computer and use it in GitHub Desktop.
Save ulcuber/972ab701ed270179fce8a55c4f161591 to your computer and use it in GitHub Desktop.
Illuminate\Routing\RouteRegistrar
<?php
/*
* use Illuminate\Routing\RouteRegistrar@group instead of Illuminate\Routing\Router@group
*/
Route::domain('')
->middleware('')
->namespace('Product')
->prefix('products')
->as('products.')
->group(base_path('routes/groups/products.php'));
/*
* Not like that
*/
Route::group([
'domain' => '',
'middleware' => '',
'namespace' => 'Product',
'prefix' => 'products',
'as' => 'products.',
], base_path('routes/groups/products.php'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment