<?php

namespace App\Http\Requests\Admin\Finance;

use App\Enums\Permission;
use Illuminate\Foundation\Http\FormRequest;

class ApproveEmployeeAdvanceRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()?->can(Permission::EMPLOYEE_ADVANCES_VERIFY->value) ?? false;
    }

    public function rules(): array
    {
        return [];
    }
}
