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