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('/');
    }
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('/');
    }
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 ( '/' ) ; }
create a new user in DB

@return Response
create a new user in DB