public compose ( Illuminate\Contracts\View\View $view ) | ||
$view | Illuminate\Contracts\View\View |
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);
}