diff --git a/config/app.php b/config/app.php index c8f54a1c543..f86e2e4df1a 100644 --- a/config/app.php +++ b/config/app.php @@ -15,7 +15,7 @@ /* |-------------------------------------------------------------------------- - | Application Name (Logo) + | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the @@ -24,15 +24,7 @@ | */ - 'name' => " - -\033[34m __ __ __ \033[33m ___ __ _____ -\033[34m / // /_ _____/ /__ \033[33m/ _ \/ // / _ \ -\033[34m / _ / // / _ / -_)\033[33m ___/ _ / ___/ -\033[34m /_//_/\_, /\_,_/\__/\033[33m_/ /_//_/_/ -\033[34m /___/ - -\033[0m", + 'name' => 'HydePHP', /* |-------------------------------------------------------------------------- diff --git a/packages/framework/src/Console/HydeConsoleServiceProvider.php b/packages/framework/src/Console/HydeConsoleServiceProvider.php index 8099e7526c7..318813faf6f 100644 --- a/packages/framework/src/Console/HydeConsoleServiceProvider.php +++ b/packages/framework/src/Console/HydeConsoleServiceProvider.php @@ -6,6 +6,8 @@ use Illuminate\Support\ServiceProvider; +use Illuminate\Console\Application as Artisan; + /** * Register the HydeCLI console commands. */ @@ -36,5 +38,23 @@ public function register(): void Commands\ServeCommand::class, Commands\DebugCommand::class, ]); + + Artisan::starting(function (Artisan $artisan): void { + $artisan->setName(self::logo()); + }); + } + + protected static function logo(): string + { + return <<