public function register() { $this->app->singleton([Cart::class => 'cart'], function ($app) { return new Cart($app['session'], $app['events']); }); }