Skip to content

Instantly share code, notes, and snippets.

@iradofurioso
Created June 14, 2019 22:16
Show Gist options
  • Save iradofurioso/0733954557b9d61cb3c4532ffa7321fc to your computer and use it in GitHub Desktop.
Save iradofurioso/0733954557b9d61cb3c4532ffa7321fc to your computer and use it in GitHub Desktop.
Laravel - Security - Hiding image (or any other file with correct mime) real path
return response($myImagePath, 200)->header('Content-Type', 'image/jpeg');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment