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