/** * Bootstrap the application services. * * @return void */ public function boot() { view()->composer('*', function ($view) { $view->with('currentUser', \Auth::user())->with('totalQuotes', \App\Entities\Quote::count())->with('totalDealers', \App\Entities\User::count())->with('quoteStats', \App\Entities\Quote::getStats()); }); }