In one of my Controllers I am returning a file to the user using the response()->file() function. This function displays images if its a .png,.jpg or .gif and text files if it's a .txt or .ini file.
However, if the file is a .html or .js file or any other type of file format that has code written in it, the reponse function will render and execute that code.
How can I stop laravel from rendering and executing the "text file" that is being displayed?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qM5ymB
via IFTTT
Aucun commentaire:
Enregistrer un commentaire