Changeset View
Changeset View
Standalone View
Standalone View
src/app/PlanPackage.php
Show All 13 Lines | |||||
* @property int $qty | * @property int $qty | ||||
* @property int $qty_max | * @property int $qty_max | ||||
* @property int $qty_min | * @property int $qty_min | ||||
* @property \App\Package $package | * @property \App\Package $package | ||||
* @property \App\Plan $plan | * @property \App\Plan $plan | ||||
*/ | */ | ||||
class PlanPackage extends Pivot | class PlanPackage extends Pivot | ||||
{ | { | ||||
/** @var array<int, string> The attributes that are mass assignable */ | |||||
protected $fillable = [ | protected $fillable = [ | ||||
'plan_id', | 'plan_id', | ||||
'package_id', | 'package_id', | ||||
'qty', | 'qty', | ||||
'qty_max', | 'qty_max', | ||||
'qty_min', | 'qty_min', | ||||
'discount_qty', | 'discount_qty', | ||||
'discount_rate' | 'discount_rate' | ||||
]; | ]; | ||||
/** @var array<string, string> The attributes that should be cast */ | |||||
protected $casts = [ | protected $casts = [ | ||||
'qty' => 'integer', | 'qty' => 'integer', | ||||
'qty_max' => 'integer', | 'qty_max' => 'integer', | ||||
'qty_min' => 'integer', | 'qty_min' => 'integer', | ||||
'discount_qty' => 'integer', | 'discount_qty' => 'integer', | ||||
'discount_rate' => 'integer' | 'discount_rate' => 'integer' | ||||
]; | ]; | ||||
Show All 38 Lines |