Skip to content

Commit

Permalink
Merge pull request #25 from larapack/enhancement/add-setup-event
Browse files Browse the repository at this point in the history
Add setup event
  • Loading branch information
marktopper authored Jan 16, 2018
2 parents 35c7501 + 12e6c70 commit 036847d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/SetupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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());
}
}
8 changes: 8 additions & 0 deletions src/Events/Setup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Larapack\Hooks\Events;

class Setup
{
//
}

0 comments on commit 036847d

Please sign in to comment.