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