ldc-legaulois/app/Http/Requests/Fo/ConsentRequest.php
2026-09-25 16:25:31 +02:00

21 lines
522 B
PHP

<?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',
'action' => 'required|string|in:optin,noptin',
];
}
}