2025-11-07 11:06:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Fo;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
|
|
class ConsentRequest extends FormRequest
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
|
|
|
*/
|
|
|
|
|
public function rules(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'hashcode' => 'required|string|exists:optin_consents,hashcode',
|
2026-09-25 16:25:31 +02:00
|
|
|
'action' => 'required|string|in:optin,noptin',
|
2025-11-07 11:06:31 +01:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|