30 lines
590 B
PHP
30 lines
590 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\StockStatusEnum;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class OrderArchivesItem extends BaseAuditable
|
|
{
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'stock_status' => StockStatusEnum::class,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* The items that belong to the OrderArchive.
|
|
*/
|
|
public function orderArchive(): BelongsTo
|
|
{
|
|
return $this->belongsTo(OrderArchive::class);
|
|
}
|
|
|
|
public function ProductGroup(): BelongsTo
|
|
{
|
|
return $this->belongsTo(ProductGroup::class);
|
|
}
|
|
}
|