public function __construct(CategoryRepository $category, TagRepository $tag, PostRepository $post) { $this->category = $category; $this->tag = $tag; $this->post = $post; }