diff --git a/src/Providers/LaravelCartServiceProvider.php b/src/Providers/LaravelCartServiceProvider.php index c1b79c1..c4a3e05 100644 --- a/src/Providers/LaravelCartServiceProvider.php +++ b/src/Providers/LaravelCartServiceProvider.php @@ -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'); + } } }