/** * Instantiate the controller. * * @param \Arcanesoft\Blog\Models\Tag $tag */ public function __construct(Tag $tag) { parent::__construct(); $this->tag = $tag; $this->setCurrentPage('blog-tags'); $this->addBreadcrumbRoute('Tags', 'blog::foundation.tags.index'); }
/** * Instantiate the controller. * * @param \Arcanesoft\Blog\Models\Category $category */ public function __construct(Category $category) { parent::__construct(); $this->category = $category; $this->setCurrentPage('blog-categories'); $this->addBreadcrumbRoute('Categories', 'blog::foundation.categories.index'); }
/** * Instantiate the controller. * * @param Post $post */ public function __construct(Post $post) { parent::__construct(); $this->post = $post; $this->setCurrentPage('blog-posts'); $this->addBreadcrumbRoute('Posts', 'blog::foundation.posts.index'); }
/** * Instantiate the controller. */ public function __construct() { parent::__construct(); $this->setCurrentPage('blog-dashboard'); }