<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class StoreWarningRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()->can('warnings.manage');
    }

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