How can i access files when i make a symbolic link from storage to public folder?
Hi, all.
I am trying to figure out how can i work with files, display them to the public etc when i use the Storage facade. My steps were as follows:
i run php artisan storage:link command. it worked and i can see a link folder called storage in the public directory.
Now, when a user registers, i want to create a folder for that user to save all kind off stuff related to that user, as well as an avatar image for the profile. i am doing this like so:
Storage::makeDirectory('/public/photos/profiles/'.$user->id);, and yes, it is successful.
Now, how can i upload a photo and use it from the public directory and display it?
Thanks.