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