Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Commit

Permalink
Add migrations autoload option to the package
Browse files Browse the repository at this point in the history
  • Loading branch information
Omranic committed Jan 20, 2020
1 parent 85144a4 commit da3d7ba
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

return [

// Manage autoload migrations
'autoload_migrations' => true,

// Subscriptions Database Tables
'tables' => [

Expand Down
1 change: 1 addition & 0 deletions src/Providers/SubscriptionsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ public function boot(): void
// Publish Resources
! $this->app->runningInConsole() || $this->publishesConfig('rinvex/laravel-subscriptions');
! $this->app->runningInConsole() || $this->publishesMigrations('rinvex/laravel-subscriptions');
! $this->app['config']['rinvex.subscriptions.autoload_migrations'] || $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
}
}

0 comments on commit da3d7ba

Please sign in to comment.