Fix API reliability and CORS config for hosted deployment

هذا الالتزام موجود في:
Abdul Kareem
2026-02-22 01:17:35 +03:00
الأصل cc11f2e063
التزام 090427cf2c
20 ملفات معدلة مع 267 إضافات و22 حذوفات

عرض الملف

@@ -8,18 +8,32 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
class ReservationReminder extends Model
{
use HasFactory;
public $timestamps = false;
protected $fillable = [
'reservation_id',
'user_id',
'remind_at',
'send_at',
'sent_at',
];
protected $casts = [
'remind_at' => 'datetime',
'send_at' => 'datetime',
'sent_at' => 'datetime',
];
public function setSendAtAttribute($value): void
{
$this->attributes['remind_at'] = $value;
}
public function getSendAtAttribute()
{
return $this->attributes['remind_at'] ?? null;
}
public function reservation()
{
return $this->belongsTo(Reservation::class);