public function compose(View $view) { $theme = config('deployer.theme'); $user = Auth::user(); if ($user) { if (!empty($user->skin)) { $theme = $user->skin; } } $view->with('theme', $theme); }