feat(storage): implement S3 file upload and temporary URL generation functionality

This commit is contained in:
2026-06-25 14:23:34 -03:00
parent 3360e81e96
commit 049484dee5
7 changed files with 272 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?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'],
];
}
}