original_string: public function administrativeAreas($country_id, Request $request = null)
      {
          $query = AdministrativeArea::where('country_id', $country_id)
              ->with('country');
  
          if ($request) {
              $resource = new Collection($query, 'administrative_area', $request);
              return $this->respondWithCollection($resource);
          }
          return $query->get();
      }
code: public function administrativeAreas($country_id, Request $request = null)
      {
          $query = AdministrativeArea::where('country_id', $country_id)
              ->with('country');
  
          if ($request) {
              $resource = new Collection($query, 'administrative_area', $request);
              return $this->respondWithCollection($resource);
          }
          return $query->get();
      }
code_tokens: public function administrativeAreas ( $ country_id , Request $ request = null ) { $ query = AdministrativeArea :: where ( 'country_id' , $ country_id ) -> with ( 'country' ) ; if ( $ request ) { $ resource = new Collection ( $ query , 'administrative_area' , $ request ) ; return $ this -> respondWithCollection ( $ resource ) ; } return $ query -> get ( ) ; }
docstring: Get Administrative areas collection of a country given
  
  @param int $country_id
  @param Illuminate\Http\Request $request
  @return mixed Jnaxo\CountryCodes\AdministrativeArea collection
docstring_tokens: Get Administrative areas collection of a country given