Skip to content

Commit 1c23a2e

Browse files
committed
[FIX] Helper path.
1 parent 8400156 commit 1c23a2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/functions/laravel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function storage_path($path = '')
5555
*/
5656
function base_path($path = '')
5757
{
58-
return evo()->basePath() . ($path ? DIRECTORY_SEPARATOR . $path : $path);
58+
return rtrim(evo()->basePath(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $path;
5959
}
6060
}
6161

@@ -68,7 +68,7 @@ function base_path($path = '')
6868
*/
6969
function public_path($path = '')
7070
{
71-
return evo()->publicPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path);
71+
return rtrim(evo()->publicPath(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $path;
7272
}
7373
}
7474

@@ -81,7 +81,7 @@ function public_path($path = '')
8181
*/
8282
function resource_path($path = '')
8383
{
84-
return evo()->publicPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path);
84+
return rtrim(evo()->publicPath(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $path;
8585
}
8686
}
8787

0 commit comments

Comments
 (0)