story = $story; $this->category = $category; } /** * Returns count of story. * * @param array $filter * * @return int */ public function count() { return 0; } /** * Find story by slug. * * @param array $filter * * @return int */ public function story($slug) { return $this->story ->findBySlug($slig) ->toArray(); } }