src/Model/Model.php
public function getCollection()
    {
        if (! isset($this->collection)) {
            return str_replace(
                '\\', '', Str::snake(Str::plural(class_basename($this)))
            );
        }

        return $this->collection;
    }
public function getCollection()
    {
        if (! isset($this->collection)) {
            return str_replace(
                '\\', '', Str::snake(Str::plural(class_basename($this)))
            );
        }

        return $this->collection;
    }
public function getCollection ( ) { if ( ! isset ( $ this -> collection ) ) { return str_replace ( '\\' , '' , Str :: snake ( Str :: plural ( class_basename ( $ this ) ) ) ) ; } return $ this -> collection ; }
Get the collection associated with the model.

@return string
Get the collection associated with the model .