Last active
January 9, 2021 16:36
-
-
Save mostafa6765/294bd08118c98bb558c6db3937752c41 to your computer and use it in GitHub Desktop.
Laravel cpanel storage symlink
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 | |
$targetFolder = $_SERVER['DOCUMENT_ROOT'].'/storage/app/public'; | |
$linkFolder = $_SERVER['DOCUMENT_ROOT'].'/public/storage'; | |
symlink($targetFolder,$linkFolder); | |
echo 'Symlink process successfully completed'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment