Collective\Remote\Console\TailCommand::getPath PHP Метод

getPath() защищенный Метод

Get the path to the Laravel log file.
protected getPath ( string $connection ) : string
$connection string
Результат string
    protected function getPath($connection)
    {
        if ($this->option('path')) {
            return $this->option('path');
        }
        if (is_null($connection) && $this->option('path')) {
            return storage_path($this->option('path'));
        } elseif (is_null($connection) && !$this->option('path')) {
            return storage_path('logs');
        }
        return $this->getRoot($connection) . str_replace(base_path(), '', storage_path('logs'));
    }