Exemple #1
0
 /**
  * Handle a registration request for the application.
  *
  * @param RegisterRequest $request
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function postRegister(RegisterRequest $request)
 {
     if (!\Setting::get('user::enable-registration')) {
         return redirect()->route('login');
     }
     \Auth::login($this->create($request->all()));
     return redirect($this->redirectPath());
 }
Exemple #2
0
 public function postRegister(RegisterRequest $request)
 {
     app('Modules\\User\\Services\\UserRegistration')->register($request->all());
     flash()->success(trans('user::messages.account created check email for activation'));
     return redirect()->route('register');
 }