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