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

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

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

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

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

@param  int $id

@return JsonResponse
Display the specified Role .