// Empty data and rules $validator = \Validator::make([], []); // Add fields and errors $validator->errors()->add('fieldName', 'This is the error message'); throw new \Illuminate\Validation\ValidationException($validator);
// Empty data and rules $validator = \Validator::make([], []); // Add fields and errors $validator->errors()->add('fieldName', 'This is the error message'); throw new \Illuminate\Validation\ValidationException($validator);