<?php

namespace App\Http\Requests\Wilayah;

use Illuminate\Foundation\Http\FormRequest;

class LookupWilayahRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            /** Pencarian opsional berdasarkan kode atau nama wilayah. */
            'search' => ['nullable', 'string', 'max:100'],
        ];
    }
}
