Level 102
I found a solution, but it feels kinda hacky. I added this to my formrequest
public function withValidator(\Illuminate\Validation\Validator $validator)
{
$validator->after(function (\Illuminate\Validation\Validator $validator) {
if ($validator->errors()->isNotEmpty()) {
$validator->errors()->add('id', intval(request()->segment(3)));
}
});
}
and then in react i check if errors.id matches
If anyone has a cleaner solution, I would be happy to hear it :)