Last active
July 25, 2018 08:07
-
-
Save ulcuber/972ab701ed270179fce8a55c4f161591 to your computer and use it in GitHub Desktop.
Illuminate\Routing\RouteRegistrar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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