21 lines
536 B
PHP
21 lines
536 B
PHP
<?php
|
|
|
|
namespace Modules\News\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
final class NewsServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->register(RouteServiceProvider::class);
|
|
$this->mergeConfigFrom(module_path('News', 'Config/config.php'), 'news');
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
$this->loadMigrationsFrom(module_path('News', 'Database/Migrations'));
|
|
$this->loadViewsFrom(module_path('News', 'Resources/views'), 'news');
|
|
}
|
|
}
|