Skip to content

Commit 2aaeea5

Browse files
committed
feat(globals): add storage_path()
1 parent 5d1e326 commit 2aaeea5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/globals.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,13 @@ function database_path(string $path = ''): string
112112
{
113113
return app()->databasePath($path);
114114
}
115+
116+
/**
117+
* Get the path to the storage folder.
118+
*
119+
* @throws BindingResolutionException
120+
*/
121+
function storage_path(string $path = ''): string
122+
{
123+
return app()->storagePath($path);
124+
}

0 commit comments

Comments
 (0)