Created
December 1, 2022 04:36
-
-
Save ydenissov/1582a7f10f3a4432c30a538a552ae54c to your computer and use it in GitHub Desktop.
Check dir exists and create if not Laravel Storage
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 | |
if (!Storage::disk('local')->exists("import")) { | |
Storage::disk('local')->makeDirectory("import"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment