<?php

use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Storage;

if (!function_exists('path_asset')) {
    function path_asset($configKey)
    {
        return asset(config($configKey));
    }
}

if (!function_exists('path_public_path')) {
    function path_public_path($configKey)
    {
        return public_path(config($configKey));
    }
}

if (!function_exists('path_base_path')) {
    function path_base_path($configKey)
    {
        return base_path(config($configKey));
    }
}

if (!function_exists('getStoragePath')) {
    function getStoragePath($path)
    {
        return Storage::path($path);
    }
}

if (!function_exists('getRequestUrl')) {
    function getRequestUrl()
    {
        return Request::url();
    }
}
