<?php

if (!function_exists('storage_url')) {
    function storage_url(string $path = ''): string {
        $storageUrl = env('STORAGE_URL', '/penyimpanan');
        return rtrim($storageUrl, '/') . '/' . ltrim($path, '/');
    }
}

if (!function_exists('storage_path_external')) {
    function storage_path_external(): string {
        return env('STORAGE_PATH', public_path('penyimpanan'));
    }
}

