<?php

namespace App\Models;

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

class Employee extends Model
{
    use HasFactory;

    protected $table = 'rm_employees';

    protected $fillable = [
        'name','phone','date_of_birth','designation_id','department_id',
        'address','nid','gender','religion','nationality','image',
        'created_by','updated_by'
    ];

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


