mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-22 07:05:23 +00:00
Renamed migration file
Fixed migration being published multiple times Added more tests Fixed setGlobalTax and setGlobalDiscount
This commit is contained in:
@@ -29,13 +29,8 @@ class ShoppingcartServiceProvider extends ServiceProvider
|
||||
}
|
||||
});
|
||||
|
||||
if ( ! class_exists('CreateShoppingcartTable')) {
|
||||
// Publish the migration
|
||||
$timestamp = date('Y_m_d_His', time());
|
||||
|
||||
$this->publishes([
|
||||
__DIR__.'/../database/migrations/0000_00_00_000000_create_shoppingcart_table.php' => database_path('migrations/'.$timestamp.'_create_shoppingcart_table.php'),
|
||||
], 'migrations');
|
||||
}
|
||||
$this->publishes([
|
||||
realpath(__DIR__.'/../database/migrations') => $this->app->databasePath().'/migrations'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user