예제 #1
0
 /**
  * @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>';
 }
예제 #2
0
 protected function getValidatorErrors()
 {
     return $this->validator->messages()->all();
 }