/** * @param \Illuminate\Support\Facades\Validator $validator * @return string */ public static function getValidationErrorsHtml($validator) { $temp = ''; foreach ($validator->messages()->all('<li>:message</li>') as $message) { $temp .= $message; } return '<ul>' . $temp . '</ul>'; }
protected function getValidatorErrors() { return $this->validator->messages()->all(); }