plan = $plan; $this->plan_feature = $plan_feature; $this->plan_subscription_usage = $plan_subscription_usage; $this->plan_subscription = $plan_subscription; } /** * 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($slig) ->toArray(); } }