Skip to content

Commit a532336

Browse files
author
Max
committed
fixed
1 parent 0ebb9f1 commit a532336

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"autoload": {
3030
"psr-4": {
3131
"BeyondCode\\DumpServer\\": "src"
32-
}
32+
},
33+
"files": [
34+
"helpers.php"
35+
]
3336
},
3437
"autoload-dev": {
3538
"psr-4": {

helpers.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
if (!function_exists('config_path')) {
3+
/**
4+
* Get the configuration path.
5+
*
6+
* @param string $path
7+
* @return string
8+
*/
9+
function config_path($path = '')
10+
{
11+
return app()->basePath() . DIRECTORY_SEPARATOR . 'config' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
12+
}
13+
}

0 commit comments

Comments
 (0)