original_string: public function postRegister(RegisterRequest $request)
      {
          $inputs = $request->except('_token');
          $inputs['password'] = Hash::make($inputs['password']);
          $user = $this->userRepo->create($inputs);
  
          Event::fire(new UserHasCreated($user));
  
          return Redirect::to('/');
      }
code: public function postRegister(RegisterRequest $request)
      {
          $inputs = $request->except('_token');
          $inputs['password'] = Hash::make($inputs['password']);
          $user = $this->userRepo->create($inputs);
  
          Event::fire(new UserHasCreated($user));
  
          return Redirect::to('/');
      }
code_tokens: public function postRegister ( RegisterRequest $ request ) { $ inputs = $ request -> except ( '_token' ) ; $ inputs [ 'password' ] = Hash :: make ( $ inputs [ 'password' ] ) ; $ user = $ this -> userRepo -> create ( $ inputs ) ; Event :: fire ( new UserHasCreated ( $ user ) ) ; return Redirect :: to ( '/' ) ; }
docstring: create a new user in DB
  
  @return Response
docstring_tokens: create a new user in DB