ldc-legaulois/app/Http/Requests/Fo/ConsentRequest.php
2025-11-07 11:06:31 +01:00

21 lines
521 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'
];
}
}