Created
April 21, 2018 23:47
-
-
Save janzikmund/e33314a03553c22adb11aa43cbcc3b45 to your computer and use it in GitHub Desktop.
Laravel helper get storage disk path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get path for Storage disk | |
*/ | |
function disk_path($disk = 'local') { | |
return Storage::disk($disk)->getDriver()->getAdapter()->getPathPrefix(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment