Skip to content

Instantly share code, notes, and snippets.

@einnar82
Created July 13, 2018 11:58
Show Gist options
  • Save einnar82/08eeacabd83a02f0ec8e23aa1a81e1ff to your computer and use it in GitHub Desktop.
Save einnar82/08eeacabd83a02f0ec8e23aa1a81e1ff to your computer and use it in GitHub Desktop.
Separating route files in laravel
<?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