2
I would like to check if there is a possibility in the formRequest validation to pass the value of one input as a parameter to validate another. Example: Inputs 'company_id', 'email' in formRequest I would like to pass the value of company_id in a custom validation.
'test' is my custom validation and as parameter I would like it to be the value of the input 'company_id', but this way it sends as parameter a string with the value = 'company_id'.
The validation I want to do is single email to the company ID. The email can repeat however not with same company ID.