50 lines
1 KiB
PHP
50 lines
1 KiB
PHP
<?php
|
|
|
|
if(!function_exists('base_path')) {
|
|
function base_path(string $path = ''): string
|
|
{
|
|
return app()->getBasePath($path);
|
|
}
|
|
}
|
|
|
|
if(!function_exists('config_path')) {
|
|
function config_path(string $path = ''): string
|
|
{
|
|
return app()->getConfigPath($path);
|
|
}
|
|
}
|
|
|
|
if(!function_exists('lang_path')) {
|
|
function lang_path(string $path = ''): string
|
|
{
|
|
return app()->getLangPath($path);
|
|
}
|
|
}
|
|
|
|
if(!function_exists('public_path')) {
|
|
function public_path(string $path = ''): string
|
|
{
|
|
return app()->getPublicPath($path);
|
|
}
|
|
}
|
|
|
|
if(!function_exists('storage_path')) {
|
|
function storage_path(string $path = ''): string
|
|
{
|
|
return app()->getStoragePath($path);
|
|
}
|
|
}
|
|
|
|
if(!function_exists('resource_path')) {
|
|
function resource_path(string $path = ''): string
|
|
{
|
|
return app()->getResourcePath($path);
|
|
}
|
|
}
|
|
|
|
if(!function_exists('view_path')) {
|
|
function view_path(string $path = ''): string
|
|
{
|
|
return app()->getViewPath($path);
|
|
}
|
|
} |