<?php

namespace App\Models;

use App\Traits\HasLocalizedAttributes;
use Illuminate\Database\Eloquent\Model;

class News extends Model
{
    use HasLocalizedAttributes;

    protected $fillable = [
        'image',
        'title_en',
        'title_ar',
        'short_description_en',
        'short_description_ar',
        'description_en',
        'description_ar',
        'date',
    ];

    protected $casts = [
        'date' => 'date',
    ];

    protected $localizable = ['title', 'description', 'short_description'];
}
