hasMany(PlanSubscribe::class, 'plan_id'); } /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'features' => 'json', 'duration' => 'integer', 'offerPrice' => 'double', 'status' => 'integer', 'visibility' => 'json', 'subscriptionPrice' => 'double', 'allow_multibranch' => 'integer', 'addon_domain_limit' => 'integer', 'subdomain_limit' => 'integer', ]; }