Skip to content

Commit 485835c

Browse files
committed
Fix package auto-discovery
1 parent 4181ef9 commit 485835c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NativeServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public function packageRegistered()
3535
{
3636
$this->mergeConfigFrom($this->package->basePath('/../config/nativephp-internal.php'), 'nativephp-internal');
3737

38+
$this->app->singleton(FreshCommand::class, function ($app) {
39+
return new FreshCommand($app['migrator']);
40+
});
41+
3842
$this->app->singleton(MigrateCommand::class, function ($app) {
3943
return new MigrateCommand($app['migrator'], $app['events']);
4044
});

0 commit comments

Comments
 (0)