Skip to content

Instantly share code, notes, and snippets.

@hultberg
Forked from mabasic/helpers.php
Created April 18, 2016 18:00
Show Gist options
  • Save hultberg/1aaf8ef2c3c88660c8e20f92cefb091b to your computer and use it in GitHub Desktop.
Save hultberg/1aaf8ef2c3c88660c8e20f92cefb091b 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