public function show($id, ShowRequest $request)
    {
        $user = $this->repository->findWithoutFail($id);
        $user->load($request->getWith());

        if (empty($user)) {
            return $this->sendError('User not found');
        }

        return $this->sendResponse($user, '');
    }
public function show($id, ShowRequest $request)
    {
        $user = $this->repository->findWithoutFail($id);
        $user->load($request->getWith());

        if (empty($user)) {
            return $this->sendError('User not found');
        }

        return $this->sendResponse($user, '');
    }
public function show ( $ id , ShowRequest $ request ) { $ user = $ this -> repository -> findWithoutFail ( $ id ) ; $ user -> load ( $ request -> getWith ( ) ) ; if ( empty ( $ user ) ) { return $ this -> sendError ( 'User not found' ) ; } return $ this -> sendResponse ( $ user , '' ) ; }
Display the specified User.

@param  int $id

@return JsonResponse
Display the specified User .