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