Skip to content

Instantly share code, notes, and snippets.

@evertramos
Forked from mabasic/helpers.php
Created June 6, 2016 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evertramos/aa0944c6e823b1914fb82a585314a2f3 to your computer and use it in GitHub Desktop.
Save evertramos/aa0944c6e823b1914fb82a585314a2f3 to your computer and use it in GitHub Desktop.
config_path function for Lumen framework
<?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