app->singleton(Cart::class, function ($app) { return new Cart( $app['session'], $app['events'], 'cart', session()->getId(), config('fleetcart.modules.cart.config') ); }); $this->app->alias(Cart::class, 'cart'); } }