helpers.php 371 B

12345678910111213141516
  1. <?php
  2. if (! function_exists('config_path')) {
  3. /**
  4. * Get the configuration path.
  5. *
  6. * This is a polyfill for the missing shorthand function in lumen.
  7. *
  8. * @param string $path
  9. * @return string
  10. */
  11. function config_path($path = '')
  12. {
  13. return app()->basePath('config').($path ? DIRECTORY_SEPARATOR.$path : $path);
  14. }
  15. }