Skip to content

Commit 12e6c70

Browse files
committed
Add setup event
1 parent 35c7501 commit 12e6c70

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: src/Commands/SetupCommand.php

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Filesystem\Filesystem;
77
use Larapack\Hooks\Composer;
8+
use Larapack\Hooks\Events\Setup;
89

910
class SetupCommand extends Command
1011
{
@@ -44,5 +45,7 @@ public function handle()
4445
$composer->save();
4546

4647
$this->info('Hooks are now ready to use! Go ahead and try to "php artisan hook:install test-hook"');
48+
49+
event(new Setup());
4750
}
4851
}

Diff for: src/Events/Setup.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Larapack\Hooks\Events;
4+
5+
class Setup
6+
{
7+
//
8+
}

0 commit comments

Comments
 (0)