Laravel Tip – Break up your routes
Published on by Eric L. Barnes
Do you have a lot of routes? Are they getting hard to manage?
Here is a Laravel quick tip to help you clean them up. Use the Request::is() method to break them out into separate files. Here is an example:
if (Request::is('admin/*')){ require __DIR__.'/admin_routes.php';}
Eric is the creator of Laravel News and has been covering Laravel since 2012.