Пример #1
0
 /**
  * Create a new Larabook user
  *
  * @return string
  */
 public function store()
 {
     $this->registrationForm->validate(Input::all());
     $user = $this->execute(RegisterUserCommand::class);
     Auth::login($user);
     Flash::success('Glad to have you as a new subscriber');
     return Redirect::home();
 }
 /**
  * Create a new Larabook user.
  *
  * @return string
  */
 public function store()
 {
     $this->registrationForm->validate(Input::all());
     $user = $this->execute(RegisterUserCommand::class);
     Auth::login($user);
     Flash::overlay('Glad to have you as a new Larabook member!');
     return Redirect::home();
 }
Пример #3
0
 /**
  * Create a new Larabook user
  *
  * @return string
  **/
 public function store()
 {
     $this->registrationForm->validate(Input::all());
     $user = $this->execute(RegisterUserCommand::class);
     Auth::login($user);
     Flash::message('Glad to have you as a new larabook member!');
     return Redirect::home()->with('flash_message', 'Welcome aboard!');
 }