Created
November 5, 2020 17:51
-
-
Save praveencs87/007bac47b8be8448a49b2a7cf984cde2 to your computer and use it in GitHub Desktop.
Create Storage ink in public folder using php script (shared hosting)
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 | |
//Delete storage directory from public and Run below script from public folder | |
echo $targetFolder = $_SERVER['DOCUMENT_ROOT'].'/../storage/app/public'; | |
echo "<br>"; | |
echo $linkFolder = $_SERVER['DOCUMENT_ROOT'].'/storage'; | |
symlink($targetFolder,$linkFolder); | |
echo 'Symlink completed'; | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment