1: <?php
2:
3: if (! function_exists('config_path')) {
4: /**
5: * Get the configuration path.
6: *
7: * @param string $path
8: * @return string
9: */
10: function config_path($path = '')
11: {
12: return app()->basePath() . '/config' . ($path ? '/' . $path : $path);
13: }
14: }
15:
16: if (! function_exists('public_path')) {
17: /**
18: * Return the path to public dir
19: *
20: * @param null $path
21: * @return string
22: */
23: function public_path($path = null)
24: {
25: return rtrim(app()->basePath('public/' . $path), '/');
26: }
27: }
28: