Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
stepanenko3 committed May 16, 2022

Verified

This commit was signed with the committer’s verified signature.
Ana06 Ana María Martínez Gómez
1 parent d574705 commit 996f521
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
@@ -17,13 +17,13 @@ public function boot()
{
$this->config();

// Load migrations
if (config('nova-settings.auto_load_migrations', true)) {
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
}
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');

// Publish data
$this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'nova-settings-migrations');
// Publish migrations
$this->publishes([
__DIR__ . '/../database/migrations' => database_path('migrations'),
], 'migrations');

$this->app->booted(function () {
config('nova-settings.model')::saving(function ($model) {

0 comments on commit 996f521

Please sign in to comment.