app\http\ViewComposers\UserHeaderComposer::compose PHP Méthode

compose() public méthode

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