Owl\Http\ViewComposers\UserComposer::compose PHP 메소드

compose() 공개 메소드

Share the user information to View
public compose ( Illuminate\Contracts\View\View $view ) : void
$view Illuminate\Contracts\View\View
리턴 void
    public function compose(View $view)
    {
        $currentUser = $this->user->getCurrentUser();
        if (!empty($currentUser)) {
            $view->with('User', $currentUser);
        }
    }