'double', 'trial_amount' => 'double', 'available' => 'boolean', 'total_credits' => 'integer', 'per_month_credits' => 'integer', ]; public function plan() { return $this->belongsTo(SubscriptionPlan::class, 'subscription_plan_id'); } public function getPaymentMethodAttribute($value) { return explode (",", $value); } public function setPaymentMethodAttribute($value) { $this->attributes['payment_method'] = implode(',', $value); } }