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