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