public function postSignup() { // get the registration form $val = $this->service->getRegistrationForm(); // check if the form is valid if (!$val->isValid()) { return Redirect::back()->with('errors', $val->getErrors())->withInput(); } // If Auth Sevice Fails to Register the User if (!$this->service->register($val->getInputData())) { return Redirect::home()->with('errors', $this->service->errors()); } return Redirect::action('AuthController@getLogin')->with('success', trans('auth.alerts.account_created')); }