original_string: public function countries(Request $request = null)
      {
          $query = Country::with('zone');
  
          if ($request) {
              $resource = new Collection($query, 'country', $request);
              return $this->respondWithCollection($resource);
          }
          return $query->get();
      }
code: public function countries(Request $request = null)
      {
          $query = Country::with('zone');
  
          if ($request) {
              $resource = new Collection($query, 'country', $request);
              return $this->respondWithCollection($resource);
          }
          return $query->get();
      }
code_tokens: public function countries ( Request $ request = null ) { $ query = Country :: with ( 'zone' ) ; if ( $ request ) { $ resource = new Collection ( $ query , 'country' , $ request ) ; return $ this -> respondWithCollection ( $ resource ) ; } return $ query -> get ( ) ; }
docstring: Get Country list
  
  @param Illuminate\Http\Request $request
  @return mixed Jnaxo\CountryCodes\Country collection
docstring_tokens: Get Country list