<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LeaveType extends Model
{
    protected $fillable = ['name', 'annual_days', 'requires_document', 'status'];
    protected function casts(): array { return ['requires_document' => 'boolean']; }
    public function requests(){ return $this->hasMany(LeaveRequest::class); }
}
