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