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 + ]); + } } }