/**
* Get the MessageBag of errors that is populated by the
* validator.
*
* @return \Illuminate\Support\ViewErrorBag
*/
protected function getErrors()
{
$errors = $this->form->getSessionStore()->get('errors');
if ($errors) {
return $errors->getBag($this->errorBag);
}
return $errors;
}