app/Http/Controllers/Auth/AuthController.php
// Validate user input and redirect to page
Validate user input and redirect to page
Validate user input and redirect to page
public function postRegister(Request $request)
    {
        $validator = $this->validator($request->all());
        if ($validator->fails()) {
            $this->throwValidationException(
              $request, $validator
            );
        }
        $user = $this->create($request->all());
        return redirect()->route('new_reg');
    }
public function postRegister ( Request $ request ) { $ validator = $ this -> validator ( $ request -> all ( ) ) ; if ( $ validator -> fails ( ) ) { $ this -> throwValidationException ( $ request , $ validator ) ; } $ user = $ this -> create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'new_reg' ) ; }
Validate user input and redirect to page
Validate user input and redirect to page
//create the account and login the user  //$this->auth->login($this->registrar->create($request->all())); // create the user // $user->selfRegistered == $this->['selfRegistered']; //return redirect()->route('login');