24 lines
475 B
PHP
24 lines
475 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class DeliveryCalendarOverride extends BaseAuditable
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $guarded = ['id', 'created_at', 'updated_at'];
|
|
|
|
protected $casts = [
|
|
'date' => 'date',
|
|
'is_delivery_day' => 'boolean',
|
|
];
|
|
|
|
public function supplier(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Supplier::class);
|
|
}
|
|
}
|