contact = app(Contact::class); $this->account_contact = app(AccountContact::class); $this->account = app(Account::class); } /** * Returns count of contact. * * @param array $filter * * @return int */ public function count() { return 0; } /** * Find contact by slug. * * @param array $filter * * @return int */ public function contact($slug) { return $this->contact ->findBySlug($slug) ->toArray(); } }