File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments