Implement compliance exports and retention overrides
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-02 20:13:45 +01:00
parent 5fd546c428
commit eed7699549
45 changed files with 2319 additions and 40 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace App\Http\Requests\Tenant;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class DataExportStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'scope' => ['required', Rule::in(['tenant', 'event'])],
'event_id' => ['required_if:scope,event', 'integer', 'exists:events,id'],
'include_media' => ['nullable', 'boolean'],
];
}
public function messages(): array
{
return [
'scope.required' => 'Export scope is required.',
'scope.in' => 'Export scope must be tenant or event.',
'event_id.required_if' => 'Event export requires an event.',
'event_id.exists' => 'Selected event could not be found.',
];
}
}