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