Route Organizer for Laravel is simple route solution to organize your Routes.
Require this package with composer using the following command
composer require tibian/route-organizer
Open App\Providers\RouteServiceProvider on method mapWebRoutes / mapApiRoutes define new Routes for the Application.
new RouteOrganizer('routes/web');
new RouteOrganizer('routes/api');protected function mapWebRoutes()
{
Route::group([
'middleware' => 'web',
'namespace' => $this->namespace,
], function ($router) {
new RouteOrganizer('routes/web'); // new Web Routes for the Application
require base_path('routes/web.php');
});
}Now you can Organize your Routes as you wish.
- The following example is the best if you use PHPStorm and Laravel Plugin
/path/to/laravel/routes
