26 lines
563 B
PHP
26 lines
563 B
PHP
<?php
|
|
|
|
namespace App\Domains\StorageTest\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StoreS3TestFileRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, array<int, string>>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'file' => ['required', 'file', 'max:10240'],
|
|
'directory' => ['nullable', 'string', 'max:255'],
|
|
'expires_in_minutes' => ['nullable', 'integer', 'min:1', 'max:1440'],
|
|
];
|
|
}
|
|
}
|