Stevemo\Cpanel\User\Form\UserFormInterface::getErrors PHP Method

getErrors() public method

Get the validation errors
Author: Steve Montambeault
public getErrors ( ) : array
return array
    public function getErrors();

Usage Example

Esempio n. 1
0
 /**
  * Register user
  *
  * @author Steve Montambeault
  * @link   http://stevemo.ca
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function postRegister()
 {
     if ($this->userForm->register(Input::all(), false)) {
         return Redirect::route('cpanel.login')->with('success', Lang::get('cpanel::users.register_success'));
     }
     return Redirect::back()->withInput()->withErrors($this->userForm->getErrors());
 }
All Usage Examples Of Stevemo\Cpanel\User\Form\UserFormInterface::getErrors