protected function mergeErrors($messages) { if ($this->errors == null) { $this->errors = new MessageBag(); } $this->errors->merge($messages); }