<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ContactUs extends Model
{
    use HasFactory;

    // Define the table associated with the model (optional if the table name follows Laravel's naming convention)
    protected $table = 'contact_us';

    // Define the fillable attributes to allow mass assignment
    protected $fillable = [
        'name',
        'email',
        'subject',
        'message',
    ];

    // Define the hidden attributes (optional, if you don't want certain fields to be included in array or JSON responses)
    protected $hidden = [
        'created_at',
        'updated_at',
    ];

    // Optional: If you want to set the date format in a specific way
    protected $dateFormat = 'Y-m-d H:i:s';
}
