Skip to content

Instantly share code, notes, and snippets.

@praveencs87
Created November 5, 2020 17:51
Show Gist options
  • Save praveencs87/007bac47b8be8448a49b2a7cf984cde2 to your computer and use it in GitHub Desktop.
Save praveencs87/007bac47b8be8448a49b2a7cf984cde2 to your computer and use it in GitHub Desktop.
Create Storage ink in public folder using php script (shared hosting)
<?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