| if (!function_exists('public_path')) { | |
| /** | |
| * Return the path to public dir | |
| * @param null $path | |
| * @return string | |
| */ | |
| function public_path($path = null) | |
| { | |
| return rtrim(app()->basePath('public/' . $path), '/'); | |
| } | |
| } | |
| if (!function_exists('public_path')) { | |
| /** | |
| * Return the path to public dir | |
| * @param null $path | |
| * @return string | |
| */ | |
| function public_path($path = null) | |
| { | |
| return rtrim(app()->basePath('public/' . $path), '/'); | |
| } | |
| } | |