app\http\ViewComposers\UserHeaderComposer::compose PHP Method

compose() public method

Bind data to the view.
public compose ( Illuminate\View\View $view ) : void
$view Illuminate\View\View
return void
    public function compose(View $view)
    {
        $view->with('contact', $this->users->find($view->getData()['user']['id']));
    }
UserHeaderComposer