Created
July 13, 2018 11:58
-
-
Save einnar82/08eeacabd83a02f0ec8e23aa1a81e1ff to your computer and use it in GitHub Desktop.
Separating route files in laravel
This file contains hidden or 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 | |
Route::name(your.name) | |
->prefix('your/prefix') | |
->middleware(Path\To\YourMiddleware::class) | |
->group(base_path('routes/your-route.php')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment