Skip to content

Commit

Permalink
Disable auto migration. Thanks @fbeckklaus #43
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jan 22, 2024
1 parent e8c31e2 commit c491f1f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/FavoriteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class FavoriteServiceProvider extends ServiceProvider
{
public function boot()
public function boot(): void
{
$this->publishes([
\dirname(__DIR__).'/config/favorite.php' => config_path('favorite.php'),
Expand All @@ -15,13 +15,9 @@ public function boot()
$this->publishes([
\dirname(__DIR__).'/migrations/' => database_path('migrations'),
], 'favorite-migrations');

if ($this->app->runningInConsole()) {
$this->loadMigrationsFrom(\dirname(__DIR__).'/migrations/');
}
}

public function register()
public function register(): void
{
$this->mergeConfigFrom(
\dirname(__DIR__).'/config/favorite.php',
Expand Down

0 comments on commit c491f1f

Please sign in to comment.