diff --git a/src/VerbsServiceProvider.php b/src/VerbsServiceProvider.php index dba0f0f2..fec6f22a 100644 --- a/src/VerbsServiceProvider.php +++ b/src/VerbsServiceProvider.php @@ -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', @@ -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'); } }