getErrors() public method

Get the validation errors
Author: Steve Montambeault
public getErrors ( ) : array
return array
Example #1
0
 /**
  *
  *
  * @author Steve Montambeault
  * @link   http://stevemo.ca
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function postReset()
 {
     $creds = array('password' => Input::get('password'), 'password_confirmation' => Input::get('password_confirmation'), 'code' => Input::get('code'));
     if ($this->passForm->reset($creds)) {
         return Redirect::route('cpanel.login')->with('success', Lang::get('cpanel::users.password_reset_success'));
     }
     return Redirect::back()->withInput()->withErrors($this->passForm->getErrors());
 }