<?php

namespace App\Modules\Admin\Tenancy\Requests;

use Illuminate\Foundation\Http\FormRequest;

class TenantLifecycleActionRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()?->isAdmin() ?? false;
    }

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