How to create symlink for storage public folder for Lumen How to create symlink for storage public folder for Lumen php php

How to create symlink for storage public folder for Lumen


I created by this unix command :

ln -s sourceforwhich symnlinkfolderpathe.g.:

ln -s /data/html/projectfolder/storage/app/public /data/html/projectfolder/public/storage


This is for windows,

First of all run cmd with administrator if you are on another user not in admin and then go to your project's public path e.g. project/path/public.

Then run below command,

mklink /D "storage\" "E:absolute/static/path~/storage/app/public/"

For e.g.,

mklink /D "storage\" "E:/User Name/Work/My Projects/storage/app/public/"

Hopefully it will help for Lumen windows users.


More simple and short way using unix command :

Go to the lumen/public folder in the terminal or via ssh etc.

Run :

ln -s ../storage/app/public storage