diff --git a/database/migrations/2020_01_01_000002_create_plan_features_table.php b/database/migrations/create_plan_features_table.php similarity index 100% rename from database/migrations/2020_01_01_000002_create_plan_features_table.php rename to database/migrations/create_plan_features_table.php diff --git a/database/migrations/2020_01_01_000004_create_plan_subscription_usage_table.php b/database/migrations/create_plan_subscription_usage_table.php similarity index 100% rename from database/migrations/2020_01_01_000004_create_plan_subscription_usage_table.php rename to database/migrations/create_plan_subscription_usage_table.php diff --git a/database/migrations/2020_01_01_000003_create_plan_subscriptions_table.php b/database/migrations/create_plan_subscriptions_table.php similarity index 100% rename from database/migrations/2020_01_01_000003_create_plan_subscriptions_table.php rename to database/migrations/create_plan_subscriptions_table.php diff --git a/database/migrations/2020_01_01_000001_create_plans_table.php b/database/migrations/create_plans_table.php similarity index 100% rename from database/migrations/2020_01_01_000001_create_plans_table.php rename to database/migrations/create_plans_table.php diff --git a/src/SubscriptionServiceProvider.php b/src/SubscriptionServiceProvider.php index fb06f9c..286e864 100755 --- a/src/SubscriptionServiceProvider.php +++ b/src/SubscriptionServiceProvider.php @@ -14,6 +14,12 @@ public function configurePackage(Package $package): void { $package->name('laravel-subscriptions') ->hasConfigFile('laravel-subscriptions') + ->hasMigrations([ + 'create_plans_table', + 'create_plan_features_table', + 'create_plan_subscriptions_table', + 'create_plan_subscription_usage_table', + ]) ->hasInstallCommand(function (InstallCommand $command): void { $command ->publishConfigFile()