芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Models/SubscriptionPlan.php
Saving::class, ]; /** * The attributes that should be casted to native types. * * @var array */ protected $casts = [ 'deleted_at' => 'date', 'featured' => 'boolean', ]; /** * Get the Shops associated with the plan. */ public function shops() { return $this->hasMany(Shop::class, 'current_billing_plan', 'plan_id'); } /** * Check if the plan is the featured * * @return bool */ public function isFeatured() { return $this->featured; } /** * Set the featured value. */ public function setFeaturedAttribute($value) { $this->attributes['featured'] = (bool) $value; } }