This works:
File at: app/Providers/NewsArticleServiceProvider.php
In app.php
:
'providers' => ServiceProvider::defaultProviders()->merge([
App\Providers\NewsArticleServiceProvider::class,
App\Providers\ThemeServiceProvider::class,
])->toArray(),
I would like to do this instead but it does not work:
File at: app/Providers/PostTypes/NewsArticleServiceProvider.php
In app.php
:
'providers' => ServiceProvider::defaultProviders()->merge([
App\Providers\PostTypes\NewsArticleServiceProvider::class,
App\Providers\ThemeServiceProvider::class,
])->toArray(),
Is there a way to organize the service provider files into subdirectories like this?