anilkumarthakur60's avatar

Storage folder is not showing in the public folder after linking the path

i used php artisan storage:link i linked storage folder and public folder but its not showing in the public folder directory ,just storage folder is showing and rest of the folder inside the storage directory is not showing

0 likes
5 replies
frankielee's avatar

It will only link the directory that viewable publicly, which is storage/app/public.

anilkumarthakur60's avatar

i agree with you....but why content inside storage/app is not showing inside public/storage

laracoft's avatar

@anilkumarthakur60

  • public/storage => storage/app/public
  • public => public
  1. There is no way to access storage/app from public.
  2. This allows you to have private storage instead of making everything pubilc when you use Storage:: to save.
  3. To make sure a file is save "publicly", use Storage::disk('public')->save($filename)
anilkumarthakur60's avatar
Level 6

i edited .env file and by putting

FILESYSTEM_DRIVER=public got solved problem

1 like

Please or to participate in this conversation.