コード例 #1
0
 /**
  * Store a newly created resource in storage.
  * POST /registration
  *
  * @return Response
  */
 public function store()
 {
     $input = Input::only('name', 'email', 'password', 'password_confirmation');
     $this->registrationForm->validate($input);
     $user = User::create($input);
     Auth::login($user);
     return Redirect::home();
 }
コード例 #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $input = Input::only('username', 'email', 'password', 'password_confirmation');
     //form exceptions handled in start/global.php
     $this->registrationForm->validate($input);
     $user = User::create($input);
     Auth::login($user);
     return Redirect::home();
 }
コード例 #3
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $input = Input::only('email', 'password', 'password_confirmation', 'first_name', 'last_name');
     //form exceptions handled in start/global.php
     $this->registrationForm->validate($input);
     $user = User::create($input);
     Auth::login($user);
     //email new user with pertinent new user info and OBLIGATORY WELCOME TO FLUFFYEVENTS
     // $data = array('user' => $user);
     // Mail::send('emails.welcome', $data, function($message, $user)
     // {
     //     $message->to($user->email)
     //             ->subject('Welcome to FluffyEvents!');
     // });
     return Redirect::home();
 }