Skip to content

Commit

Permalink
Manage autoload migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
rxcod9 committed Jan 22, 2023
1 parent 8f9312d commit 970d901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/VoyagerImportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function boot()

$this->mapWebRoutes();

$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
if (config('joy-voyager-import.database.autoload_migrations', true)) {
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
}

$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'joy-voyager-import');
}
Expand Down

0 comments on commit 970d901

Please sign in to comment.