public postRegister ( ) : Illuminate\Http\Response | ||
Результат | Illuminate\Http\Response |
public function postRegister()
{
$form = $this->users->getRegisterForm();
if (!$form->isValid()) {
return $this->redirectBack(['errors' => $form->getErrors()]);
}
Auth::login($this->create($form->getInputData()));
flashy()->message(lang('notification.register', 'Register Successfully!'));
return $this->redirectIntended('/');
}