Laravel storage symbolic link

When you need to use storage use this:

ln -s /home/admin/domains/domain.com/app/storage/app/public/svetvesti_img /home/admin/domains/domain.com/public_html/svetvesti_img

ln -s is symbolic link source destination.

If you want to update symbolic link after, for example changing server (dedi or vps) then use this:

Creation -> ln -s {/path/to/file-name} {link-name}
Update -> ln -sfn {/path/to/file-name} {link-name}

Leave a Reply

Your email address will not be published. Required fields are marked *