<?php

namespace App\Services\Media;

class BunnyCDNService
{
    public function cdnUrlForPath(string $path): string
    {
        $base = rtrim(config('services.bunny.cdn_url'), '/');
        $path = ltrim($path, '/');

        return $base ? "{$base}/{$path}" : $path;
    }
}
