diff --git a/config/soulbscription.php b/config/soulbscription.php index ebdc860..3051a1a 100644 --- a/config/soulbscription.php +++ b/config/soulbscription.php @@ -1,6 +1,10 @@ [ + 'cancel_migrations_autoloading' => false, + ], + 'feature_tickets' => env('SOULBSCRIPTION_FEATURE_TICKETS', false), 'models' => [ @@ -14,7 +18,7 @@ 'feature_plan' => \LucasDotVin\Soulbscription\Models\FeaturePlan::class, 'plan' => \LucasDotVin\Soulbscription\Models\Plan::class, - + 'subscriber' => [ 'uses_uuid' => env('SOULBSCRIPTION_SUBSCRIBER_USES_UUID', false), ], diff --git a/src/SoulbscriptionServiceProvider.php b/src/SoulbscriptionServiceProvider.php index eeb3e4f..f4c4134 100644 --- a/src/SoulbscriptionServiceProvider.php +++ b/src/SoulbscriptionServiceProvider.php @@ -8,9 +8,12 @@ class SoulbscriptionServiceProvider extends ServiceProvider { public function boot() { - $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); $this->mergeConfigFrom(__DIR__ . '/../config/soulbscription.php', 'soulbscription'); + if (! config('soulbscription.database.cancel_migrations_autoloading')) { + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); + } + $this->publishes([ __DIR__ . '/../config/soulbscription.php' => config_path('soulbscription.php'), ], 'soulbscription-config');