Changeset View
Changeset View
Standalone View
Standalone View
src/app/Plan.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | protected $fillable = [ | ||||
'description', | 'description', | ||||
// a start and end datetime for this promotion | // a start and end datetime for this promotion | ||||
'promo_from', | 'promo_from', | ||||
'promo_to', | 'promo_to', | ||||
// discounts start at this quantity | // discounts start at this quantity | ||||
'discount_qty', | 'discount_qty', | ||||
// the rate of the discount for this plan | // the rate of the discount for this plan | ||||
'discount_rate', | 'discount_rate', | ||||
// minimum number of months this plan is for | |||||
'months', | |||||
// number of free months (trial) | // number of free months (trial) | ||||
'free_months', | 'free_months', | ||||
]; | ]; | ||||
/** @var array<string, string> The attributes that should be cast */ | /** @var array<string, string> The attributes that should be cast */ | ||||
protected $casts = [ | protected $casts = [ | ||||
'promo_from' => 'datetime:Y-m-d H:i:s', | 'promo_from' => 'datetime:Y-m-d H:i:s', | ||||
'promo_to' => 'datetime:Y-m-d H:i:s', | 'promo_to' => 'datetime:Y-m-d H:i:s', | ||||
'discount_qty' => 'integer', | 'discount_qty' => 'integer', | ||||
'discount_rate' => 'integer', | 'discount_rate' => 'integer', | ||||
'months' => 'integer', | |||||
'free_months' => 'integer' | 'free_months' => 'integer' | ||||
]; | ]; | ||||
/** @var array<int, string> Translatable properties */ | /** @var array<int, string> Translatable properties */ | ||||
public $translatable = [ | public $translatable = [ | ||||
'name', | 'name', | ||||
'description', | 'description', | ||||
]; | ]; | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |