/** * Load post data to the template. * * @param PostInterface $post */ public function load(PostInterface $post) { $this->template->set('title', $post->getTitle()); $this->template->set('meta_title', $post->metaTitle()); $this->template->set('meta_keywords', $post->metaKeywords()); $this->template->set('meta_description', $post->metaDescription()); }
/** * Handle the command. * * @param Request $request * @param BreadcrumbCollection $breadcrumbs */ public function handle(Request $request, BreadcrumbCollection $breadcrumbs) { $breadcrumbs->add($this->post->getTitle(), $request->fullUrl()); }
/** * Return the view link. * * @return string */ public function viewLink() { return app('html')->link($this->object->path(), $this->object->getTitle(), ['target' => '_blank']); }