Skip to content

Commit 310c012

Browse files
committed
Use publishesMigrations in service provider
Switch migration publishing to Laravel helper and remove runtime load hook.
1 parent c0907ec commit 310c012

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ZapServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,14 @@ public function boot(): void
3232
{
3333
require_once __DIR__.'/helpers.php';
3434

35-
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
36-
3735
if ($this->app->runningInConsole()) {
3836
$this->publishes([
3937
__DIR__.'/../config/zap.php' => config_path('zap.php'),
4038
], 'zap-config');
4139

42-
$this->publishes([
40+
$this->publishesMigrations([
4341
__DIR__.'/../database/migrations' => database_path('migrations'),
44-
], 'zap-migrations');
42+
]);
4543
}
4644
}
4745

0 commit comments

Comments
 (0)