|null $bundle_contents For a bundle: what was inside, per bundle bought. * @property string $name * @property int $unit_price * @property int $quantity * @property int $line_total */ #[Fillable(['store_id', 'product_id', 'variant_id', 'name', 'variant_name', 'bundle_contents', 'unit_price', 'quantity', 'line_total'])] class OrderItem extends Model { /** * @return BelongsTo */ public function order(): BelongsTo { return $this->belongsTo(Order::class); } /** * @return array */ protected function casts(): array { return [ 'bundle_contents' => 'array', ]; } }