protected function collects()
    {
        if ($this->collects) {
            return $this->collects;
        }

        if (Str::endsWith(class_basename($this), 'Collection') &&
            class_exists($class = Str::replaceLast('Collection', '', get_class($this)))) {
            return $class;
        }
    }
protected function collects()
    {
        if ($this->collects) {
            return $this->collects;
        }

        if (Str::endsWith(class_basename($this), 'Collection') &&
            class_exists($class = Str::replaceLast('Collection', '', get_class($this)))) {
            return $class;
        }
    }
protected function collects ( ) { if ( $ this -> collects ) { return $ this -> collects ; } if ( Str :: endsWith ( class_basename ( $ this ) , 'Collection' ) && class_exists ( $ class = Str :: replaceLast ( 'Collection' , '' , get_class ( $ this ) ) ) ) { return $ class ; } }
Get the resource that this resource collects.

@return string|null
Get the resource that this resource collects .