12345678910111213141516171819202122232425262728293031 |
- <?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);
- }
- }
- if (! function_exists('public_path')) {
- /**
- * Get the path to the public folder.
- *
- * @param string $path
- * @return string
- */
- function public_path($path = '')
- {
- return app()->basePath() . '/public' . ($path ? '/' . $path : $path);
- }
- }
|