public function getModelName($path = null)
    {
        $path = $path ?: __DIR__.'/../tmp-model.txt';

        // Have we already fetched the model name?
        if (! is_null($this->model))
        {
            return $this->model;
        }

        // If not, let's grab it if it exists.
        if (file_exists($path))
        {
            return $this->model = $this->file->get($path);
        }
    }
public function getModelName($path = null)
    {
        $path = $path ?: __DIR__.'/../tmp-model.txt';

        // Have we already fetched the model name?
        if (! is_null($this->model))
        {
            return $this->model;
        }

        // If not, let's grab it if it exists.
        if (file_exists($path))
        {
            return $this->model = $this->file->get($path);
        }
    }
public function getModelName ( $ path = null ) { $ path = $ path ? : __DIR__ . '/../tmp-model.txt' ; // Have we already fetched the model name? if ( ! is_null ( $ this -> model ) ) { return $ this -> model ; } // If not, let's grab it if it exists. if ( file_exists ( $ path ) ) { return $ this -> model = $ this -> file -> get ( $ path ) ; } }
Fetch the model name

@param  string $path
@return mixed
Fetch the model name