Changeset View
Changeset View
Standalone View
Standalone View
src/app/PackageSku.php
Show All 10 Lines | |||||
* @property string $package_id | * @property string $package_id | ||||
* @property \App\Package $package | * @property \App\Package $package | ||||
* @property int $qty | * @property int $qty | ||||
* @property \App\Sku $sku | * @property \App\Sku $sku | ||||
* @property string $sku_id | * @property string $sku_id | ||||
*/ | */ | ||||
class PackageSku extends Pivot | class PackageSku extends Pivot | ||||
{ | { | ||||
/** @var array<int, string> The attributes that are mass assignable */ | |||||
protected $fillable = [ | protected $fillable = [ | ||||
'package_id', | 'package_id', | ||||
'sku_id', | 'sku_id', | ||||
'cost', | 'cost', | ||||
'qty' | 'qty' | ||||
]; | ]; | ||||
/** @var array<string, string> The attributes that should be cast */ | |||||
protected $casts = [ | protected $casts = [ | ||||
'cost' => 'integer', | 'cost' => 'integer', | ||||
'qty' => 'integer' | 'qty' => 'integer' | ||||
]; | ]; | ||||
/** | /** | ||||
* Under this package, how much does this SKU cost? | * Under this package, how much does this SKU cost? | ||||
* | * | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |