true, /* * Controllers in these directories that have routing attributes * will automatically be registered. * * Optionally, you can specify group configuration by using key/values */ 'directories' => [ app_path('Http/Controller')=>[ 'prefix' => 'api', 'middleware' => 'api', 'patterns' => ['*Controller.php'], ], /* app_path('Http/Controllers/Api') => [ 'prefix' => 'api', 'middleware' => 'api', // only register routes in files that match the patterns 'patterns' => ['*Controller.php'], // do not register routes in files that match the patterns 'not_patterns' => [], ], */ ], /** * This middleware will be applied to all routes. */ 'middleware' => [ \Illuminate\Routing\Middleware\SubstituteBindings::class ] ];