How to Create Symlink in Shared Hosting for Laravel

  • Create a file called symlinkcreate.php in the public_html
  • Add following code to this file
$original = '';
$copy = '';
symlink($original, $copy);
echo 'done';
  • Original is the the path of the original folder which you want to create symlink from.
  • Example:
  • Target is the the path to the folder where you need the symlink created to.
  • Example:
  • Open a new tab in your browser.
  • Type in
  • Hit Enter.
  • If the screen says 'done'. The symlink is successfully created.
  • Else the screen will show error.