Skip to content

Commit

Permalink
Merge pull request #8 from hirethunk/chris/post-merge
Browse files Browse the repository at this point in the history
Use LaravelPackageTools
  • Loading branch information
DanielCoulbourne authored Nov 16, 2023
2 parents 9237fd5 + 08f007c commit 7654305
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/VerbsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public function configurePackage(Package $package): void
$package
->name('verbs')
->hasConfigFile()
->hasCommands(
MakeVerbEventCommand::class,
MakeVerbStateCommand::class,
)
->hasMigrations(
'create_verb_events_table',
'create_verb_snapshots_table',
Expand Down Expand Up @@ -72,20 +76,5 @@ public function boot()
$this->app->make(Broker::class)->fire($event);
}
});

$this->commands([
MakeVerbEventCommand::class,
MakeVerbStateCommand::class,
]);

$this->publishes([
__DIR__.'/../config/verbs.php' => config_path('verbs.php'),
], 'verbs-config');

$this->publishes([
__DIR__.'/../database/migrations/create_verb_events_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_verb_events_table.php'),
__DIR__.'/../database/migrations/create_verb_state_events_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_verb_state_events_table.php'),
__DIR__.'/../database/migrations/create_verb_snapshots_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_verb_snapshots_table.php'),
], 'verbs-migrations');
}
}

0 comments on commit 7654305

Please sign in to comment.