Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $targetFolder = $_SERVER['DOCUMENT_ROOT'].'/storage/app/public/';
- $linkFolder = $_SERVER['DOCUMENT_ROOT'].'/public/storage';
- if(symlink($targetFolder,$linkFolder) || exec("ln -s $targetFolder $linkFolder") || shell_exec("ln -s $targetFolder $linkFolder") || passthru("ln -s $targetFolder $linkFolder") || system("ln -s $targetFolder $linkFolder")){
- echo '<pre>Laravel storage symlinker success!</pre>';
- }else{
- echo '<pre>SYMLINK FAILED! System not support or please delete storage folder that already create on public path.</pre>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement