Response::download() laravel not working-shows error-Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)

By | June 29, 2016

In the previous blog entry i explained force download in laravel

http://mydoubts.in/blog/force-download-in-laravel-file-download-in-laravel/

if you are getting the below error

Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)

No need to change the php.ini settings -php_fileinfo extension

below code will works using the header information