Skip to content

Tag: laravel-validation

Custom validation not calling the passes() function

I am trying to make a validation that will check whether at least one item is provided in an array following the steps in Custom Validation Rules Routes.php ValidateArrayElementRule.php ExamPaperQuestionsController.php In my test file I have ExamPaperQuestionStoreRequest.php The test is failing Expected statu…