beyondcode /
laravel-dump-server
| 1 | <?php |
||
| 2 | |||
| 3 | if (! function_exists('config_path')) { |
||
| 4 | /** |
||
| 5 | * Get the configuration path. |
||
| 6 | * |
||
| 7 | * This is a polyfill for the missing shorthand function in lumen. |
||
| 8 | * |
||
| 9 | * @param string $path |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | function config_path($path = '') |
||
| 13 | { |
||
| 14 | return app()->basePath('config').($path ? DIRECTORY_SEPARATOR.$path : $path); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 15 | } |
||
| 16 | } |
||
| 17 |