src/PHPDish/Component/Media/Namer/DatePathNamer.php
public function transformWithExtension($extension)
    {
        $baseDir = Carbon::now()->format('Y/md');
        do {
            $path = "{$baseDir}/{$this->generateKey()}.".$extension;
        } while ($this->filesystem->has($path));

        return $path;
    }
public function transformWithExtension($extension)
    {
        $baseDir = Carbon::now()->format('Y/md');
        do {
            $path = "{$baseDir}/{$this->generateKey()}.".$extension;
        } while ($this->filesystem->has($path));

        return $path;
    }
{@inheritdoc}