How to Link Laravel Storage if you are getting error symlink() has been disabled for security reasons.


Symlinks, short for symbolic links, are basically shortcuts to individual files or folders. One of the advantages of a symlink is that it can cross filesystems, as it references abstract filenames/directories and not physical locations.

There is a number of ways to create a symlink in cPanel:


NOTE: remember to replace "/home/path/" with the root path of Monster Tools.


1. You can create a symlink via SSH by running the following command:

ln -s /home/path/storage/app/public /home/path/public/storage

 

2. It can also be created via a cronjob using the same command:



NOTE: Make sure that you delete the cronjob once the symlink has been created.


That's it!