src/LogViewer.php
public function getFilePath()
    {
        if (!$this->filePath) {
            $path = sprintf(storage_path('logs/%s'), $this->file);

            if (!file_exists($path)) {
                throw new \Exception('log not exists!');
            }

            $this->filePath = $path;
        }

        return $this->filePath;
    }
public function getFilePath()
    {
        if (!$this->filePath) {
            $path = sprintf(storage_path('logs/%s'), $this->file);

            if (!file_exists($path)) {
                throw new \Exception('log not exists!');
            }

            $this->filePath = $path;
        }

        return $this->filePath;
    }
public function getFilePath ( ) { if ( ! $ this -> filePath ) { $ path = sprintf ( storage_path ( 'logs/%s' ) , $ this -> file ) ; if ( ! file_exists ( $ path ) ) { throw new \ Exception ( 'log not exists!' ) ; } $ this -> filePath = $ path ; } return $ this -> filePath ; }
Get file path by giving log file name.

@throws \Exception

@return string
Get file path by giving log file name .