From 69475f210eecb46486446d8bf99ff5484b564ede Mon Sep 17 00:00:00 2001 From: fokosun Date: Sun, 12 Nov 2023 19:40:20 -0500 Subject: [PATCH] register artisan chain commands with laravel --- src/Providers/ArtisanChainCommandsProvider.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Providers/ArtisanChainCommandsProvider.php b/src/Providers/ArtisanChainCommandsProvider.php index 1a67a34..f448e84 100644 --- a/src/Providers/ArtisanChainCommandsProvider.php +++ b/src/Providers/ArtisanChainCommandsProvider.php @@ -2,12 +2,17 @@ namespace Fokosun\ArtisanChainCommands\Providers; +use Fokosun\ArtisanChainCommands\Console\ChainCommands; use Illuminate\Support\ServiceProvider; class ArtisanChainCommandsProvider extends ServiceProvider { public function boot() { - // + if ($this->app->runningInConsole()) { + $this->commands([ + ChainCommands::class + ]); + } } }