17 lines
370 B
PHP
17 lines
370 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Core\Command\CreateAdminCommand;
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
{
|
|
public function boot(): void
|
|
{
|
|
if ($this->app->runningInConsole()) {
|
|
$this->app->booted(fn () => $this->commands([CreateAdminCommand::class]));
|
|
}
|
|
}
|
|
}
|