28 lines
633 B
PHP
Executable File
28 lines
633 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\UserManagement\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\UserManagement\Console\EnsureAdminCommand;
|
|
|
|
final class UserManagementServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->register(RouteServiceProvider::class);
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
$this->loadMigrationsFrom(module_path('UserManagement', 'Database/Migrations'));
|
|
|
|
if ($this->app->runningInConsole()) {
|
|
$this->commands([
|
|
EnsureAdminCommand::class,
|
|
]);
|
|
}
|
|
}
|
|
}
|