<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Contact extends Model
{
    use HasFactory, Notifiable;

    protected $fillable = [
        'fullname',
        'email',
        'phone',
        'subject',
        'message',
        'attachments',
    ];

    protected $casts = [
        'attachments' => 'array', // Laravel will cast JSON to array automatically
    ];
}
