/** * Handle the command. * * @param BreadcrumbCollection $breadcrumbs */ public function handle(BreadcrumbCollection $breadcrumbs) { $breadcrumbs->add($this->category->getName(), $this->dispatch(new GetCategoryPath($this->category))); }
/** * Return the view link. * * @return string */ public function viewLink() { return app('html')->link($this->dispatch(new GetCategoryPath($this->object)), $this->object->getName(), ['target' => '_blank']); }
/** * Handle the command. * * @param ViewTemplate $template */ public function handle(ViewTemplate $template) { $template->set('meta_title', $this->category->getName()); }