Skip to content

Commit 036847d

Browse files
authored
Merge pull request #25 from larapack/enhancement/add-setup-event
Add setup event
2 parents 35c7501 + 12e6c70 commit 036847d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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
}

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)