mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
Update ShoppingcartServiceProvider.php
This commit is contained in:
@@ -22,12 +22,6 @@ class ShoppingcartServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
$this->publishes([__DIR__.'/Config/cart.php' => config_path('cart.php')], 'config');
|
$this->publishes([__DIR__.'/Config/cart.php' => config_path('cart.php')], 'config');
|
||||||
|
|
||||||
$this->app['events']->listen(Logout::class, function () {
|
|
||||||
if ($this->app['config']->get('cart.destroy_on_logout')) {
|
|
||||||
$this->app->make(SessionManager::class)->forget('cart');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$this->publishes([
|
$this->publishes([
|
||||||
realpath(__DIR__.'/Database/migrations') => $this->app->databasePath().'/migrations',
|
realpath(__DIR__.'/Database/migrations') => $this->app->databasePath().'/migrations',
|
||||||
], 'migrations');
|
], 'migrations');
|
||||||
|
|||||||
Reference in New Issue
Block a user