File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ public function databasePath($path = '');
53
53
*/
54
54
public function langPath ($ path = '' );
55
55
56
+ /**
57
+ * Get the path to the public directory.
58
+ *
59
+ * @param string $path
60
+ * @return string
61
+ */
62
+ public function publicPath ($ path = '' );
63
+
56
64
/**
57
65
* Get the path to the resources directory.
58
66
*
Original file line number Diff line number Diff line change @@ -481,7 +481,9 @@ public function useLangPath($path)
481
481
*/
482
482
public function publicPath ($ path = '' )
483
483
{
484
- return $ this ->joinPaths ($ this ->basePath ('public ' ), $ path );
484
+ $ publicPath = $ this ->bound ('path.public ' ) ? $ this ->make ('path.public ' ) : $ this ->basePath ('public ' );
485
+
486
+ return $ this ->joinPaths ($ publicPath , $ path );
485
487
}
486
488
487
489
/**
Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ function precognitive($callable = null)
628
628
*/
629
629
function public_path ($ path = '' )
630
630
{
631
- return app ()->joinPaths ( app ()-> make ( ' path.public ' ), $ path );
631
+ return app ()->publicPath ( $ path );
632
632
}
633
633
}
634
634
You can’t perform that action at this time.
0 commit comments