enquiry = app(Enquiry::class); $this->cost = app(Cost::class); } /** * Returns count of enquiry. * * @param array $filter * * @return int */ public function count() { return 0; } /** * Find enquiry by slug. * * @param array $filter * * @return int */ public function enquiry($slug) { return $this->enquiry ->findBySlug($slug) ->toArray(); } }