diff --git a/src/Commands/SetupCommand.php b/src/Commands/SetupCommand.php index b2da2ff..ce46860 100644 --- a/src/Commands/SetupCommand.php +++ b/src/Commands/SetupCommand.php @@ -5,6 +5,7 @@ use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Larapack\Hooks\Composer; +use Larapack\Hooks\Events\Setup; class SetupCommand extends Command { @@ -44,5 +45,7 @@ public function handle() $composer->save(); $this->info('Hooks are now ready to use! Go ahead and try to "php artisan hook:install test-hook"'); + + event(new Setup()); } } diff --git a/src/Events/Setup.php b/src/Events/Setup.php new file mode 100644 index 0000000..28b9a95 --- /dev/null +++ b/src/Events/Setup.php @@ -0,0 +1,8 @@ +