public function store(CreateUserRequest $request)
    {
        $input = $request->all();

        $user = $this->repository->create($input);
        $user->load($request->getWith());

        return $this->sendResponse($user, 'User saved successfully.');
    }
public function store(CreateUserRequest $request)
    {
        $input = $request->all();

        $user = $this->repository->create($input);
        $user->load($request->getWith());

        return $this->sendResponse($user, 'User saved successfully.');
    }
public function store ( CreateUserRequest $ request ) { $ input = $ request -> all ( ) ; $ user = $ this -> repository -> create ( $ input ) ; $ user -> load ( $ request -> getWith ( ) ) ; return $ this -> sendResponse ( $ user , 'User saved successfully.' ) ; }
Store a newly created User in storage.

@param CreateUserRequest $request
@return JsonResponse
Store a newly created User in storage .