79224831

Date: 2024-11-25 23:12:49
Score: 0.5
Natty:
Report link

A little late, but in case it helps to anyone:

You can put all your validations in a FormRequest and set the property $stopOnFirstFailure of the FormRequest to true.

class YourFormRequest extends FormRequest
{

    protected $stopOnFirstFailure = true;

    ....
    ....
    ....
}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jairo