Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * Handle the command.
  *
  * @param Request              $request
  * @param BreadcrumbCollection $breadcrumbs
  */
 public function handle(Request $request, BreadcrumbCollection $breadcrumbs)
 {
     $breadcrumbs->add($this->post->getTitle(), $request->fullUrl());
 }
Ejemplo n.º 3
0
 /**
  * Return the view link.
  *
  * @return string
  */
 public function viewLink()
 {
     return app('html')->link($this->object->path(), $this->object->getTitle(), ['target' => '_blank']);
 }