27 lines
563 B
PHP
27 lines
563 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
|
|
/**
|
|
* @property int $shop_id
|
|
* @property int $pickup_exception_id
|
|
* @property \Illuminate\Support\Carbon|null $replacement_date
|
|
* @property \Illuminate\Support\Carbon|null $order_deadline_at
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class ShopPickupExceptionPivot extends Pivot
|
|
{
|
|
#[\Override]
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'replacement_date' => 'date',
|
|
'order_deadline_at' => 'datetime',
|
|
];
|
|
}
|
|
}
|