Beispiel #1
0
 protected function mergeErrors(ArrayableInterface $errors)
 {
     foreach ($errors->toArray() as $error) {
         $this->addError($error);
     }
 }
 /**
  * Morph a value to an array.
  *
  * @param  array|\Illuminate\Support\Contracts\ArrayableInterface  $value
  * @return array
  */
 protected function morphToArray($value)
 {
     return $value instanceof ArrayableInterface ? $value->toArray() : $value;
 }