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