<?php

namespace App\Http\Requests\Admin\Manage;

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

class StokOpnameRejectRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()->can(Permission::STOK_OPNAMES_VERIFY->value);
    }

    public function rules(): array
    {
        return [
            'reason' => ['required', 'string', 'max:1000'],
        ];
    }
}
