Skip to content

Commit

Permalink
Update LaravelCartServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Dec 20, 2024
1 parent 0f42a4d commit a70d0c5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Providers/LaravelCartServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ public function boot(): void
], 'laravel-cart-config');

// Publish Migrations
$this->publishes([
__DIR__.'/../../database/migrations' => database_path('migrations'),
], 'laravel-cart-migrations');
if (version_compare(Application::VERSION, '11.0.0', '<')) {
$this->publishes([
__DIR__.'/../../database/migrations' => database_path('migrations'),
], 'laravel-cart-migrations');
} else {
$this->publishesMigrations([
__DIR__.'/../../database/migrations' => database_path('migrations'),
], 'laravel-cart-migrations');
}
}
}

0 comments on commit a70d0c5

Please sign in to comment.