<?php

namespace App\Http\Requests\Admin\Finance;

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

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

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