Skip to content

Commit

Permalink
Merge pull request #3 from fokosun/v1.0.0
Browse files Browse the repository at this point in the history
register artisan chain commands with laravel
  • Loading branch information
fokosun authored Nov 13, 2023
2 parents 6924f41 + 69475f2 commit 9a45481
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Providers/ArtisanChainCommandsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
]);
}
}
}

0 comments on commit 9a45481

Please sign in to comment.