-
-
Save tdchien/78c2c43f58530779392a to your computer and use it in GitHub Desktop.
config_path function for Lumen framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! function_exists('config_path')) | |
{ | |
/** | |
* Get the configuration path. | |
* | |
* @param string $path | |
* @return string | |
*/ | |
function config_path($path = '') | |
{ | |
return app()->basePath() . '/config' . ($path ? '/' . $path : $path); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment