<?php
 namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class InvoiceReminderLog extends Model { protected $fillable = [ 'invoice_id', 'reminder_type', 'days_overdue', 'sent_at', ]; protected $casts = [ 'sent_at' => 'datetime', ]; public function invoice(): BelongsTo { return $this->belongsTo(Invoice::class); } } 