Barryvdh\Debugbar\DataCollector\QueryCollector::normalizeFilename PHP Method

normalizeFilename() protected method

Shorten the path by removing the relative links and base dir
protected normalizeFilename ( string $path ) : string
$path string
return string
    protected function normalizeFilename($path)
    {
        if (file_exists($path)) {
            $path = realpath($path);
        }
        return str_replace(base_path(), '', $path);
    }