I have been using the Storage facade to store user profile pictures and they are being saved inside the Storage folder in the project. The problem is that I cannot directly display these photos because of the permissions of the storage folder, I have read people mentioning mapping a private resource to a public one but I am unsure how to exactly do this.
For example here is a snippet of code I am using to save a photo upload
if (Storage::disk('public')->has($usersname)) {
Storage::delete($usersname. '.' . $ext);
}
Storage::disk('public')->put($filename, File::get($file));
But in the view I cannot directly display this now saved resource