public function getInlcudeResources($resource)
    {
        switch ($resource) {
            case 'administrative_areas':
                return $this->administrativeAreas()->getQuery();
            case 'cities':
                return $this->cities()->getQuery()->select("ctrystore_cities.*");
        }
        return false;
    }
public function getInlcudeResources($resource)
    {
        switch ($resource) {
            case 'administrative_areas':
                return $this->administrativeAreas()->getQuery();
            case 'cities':
                return $this->cities()->getQuery()->select("ctrystore_cities.*");
        }
        return false;
    }
public function getInlcudeResources ( $ resource ) { switch ( $ resource ) { case 'administrative_areas' : return $ this -> administrativeAreas ( ) -> getQuery ( ) ; case 'cities' : return $ this -> cities ( ) -> getQuery ( ) -> select ( "ctrystore_cities.*" ) ; } return false ; }
Check if resource is related with the model. Then return resource query.

@param string $resource
@return boolean
Check if resource is related with the model . Then return resource query .