23 lines
446 B
PHP
23 lines
446 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class AttachSimulationToDraftRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/** @return array<string, list<mixed>> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'simulation_id' => ['required', 'uuid'],
|
|
'consent_reuse' => ['required', 'accepted'],
|
|
];
|
|
}
|
|
}
|