/**
  * Bind data to the view.
  *
  * @param  View  $view
  * @return void
  */
 public function compose(View $view)
 {
     $view->with('brand', $this->brand->where('active', '=', 1)->first());
 }
示例#2
0
 /**
  * Привязка данных к представлению.
  *
  * @param  View  $view
  * @return void
  */
 public function compose(View $view)
 {
     $view->with('count', $this->users->count());
 }