<?php

namespace App\Domains\StorageTest\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * @return array<string, array<int, string>>
     */
    public function rules(): array
    {
        return [
            'path' => ['required', 'string', 'max:2048'],
            'expires_in_minutes' => ['nullable', 'integer', 'min:1', 'max:1440'],
        ];
    }
}
