Create a symlink (symbolic link)

Official (but sometimes not working)

php artisan storage:link

Command:(在public資料夾下)

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

ln -s ../storage storage

// In root not working. The last param should be a name, not path
ln -s storage/app/public public/storage

Windows:

//In root
mklink public\storage D:\www\wikicms\storage\app\public

Reference:

  1. https://wiki.ubuntu-tw.org/index.php?title=Ln
  2. https://www.phpini.com/linux/ln-create-link-command