Skip to content

Commit 7d9d26d

Browse files
committed
feat: add disableable migrations to individual packages (#2060)
1 parent e26ca92 commit 7d9d26d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OpayoServiceProvider.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public function boot()
3030

3131
$this->loadRoutesFrom(__DIR__.'/../routes/web.php');
3232

33-
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
33+
if (! config('lunar.database.disable_migrations', false)) {
34+
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
35+
}
3436

3537
Blade::directive('opayoScripts', function ($incVendor = true) {
3638
$url = 'https://sandbox.opayo.eu.elavon.com/api/v1/js/sagepay.js';

0 commit comments

Comments
 (0)