Esempio n. 1
0
 protected function mergeErrors(ArrayableInterface $errors)
 {
     foreach ($errors->toArray() as $error) {
         $this->addError($error);
     }
 }
Esempio n. 2
0
 /**
  * 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;
 }