<?php

namespace App\Support;

class PublicStorage
{
    public static function url(?string $path): ?string
    {
        if (! $path) {
            return null;
        }

        return '/storage/'.ltrim($path, '/');
    }
}
