title: Laravel protect images
body: <p>I have a Laravel application that stores profile images of the users. Currently I store these in the public folder. And I have a HTML &amp; JavaScript for the frontend. The frontend simply uses  tag to link to the profile images. I moved the images to the storage folder and created an API to access them. The API requires JWT so that only logged in users can access the images. But the problem now is that I'm passing the token with the API. Isn't there a better way to let only logged in users access the images and where I can simply use  tag without passing JWT?</p>
  <p>I want to protect my images from outside access, yet be able to simply have a link to access them with  tag only for logged in users.</p>