For a project we need a form for saving subscribers. You should be able to input 4 values: subscribers_f, subscribers_m, subscribers_d, and the sum of all subscribers. You can also select a category from a dropdown. For categories 2 and 3 you need to check that the actual sum (f+m+d) matches the “sum” input field. […]
Read More… from Laravel 11 Form validation rules with custom logic in Request with ErrorBag