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