public function __construct(DiscussionRepository $discussions, PostRepository $posts) { $this->discussions = $discussions; $this->posts = $posts; }