I am trying to do download feature in my laravel backend. I tried a very simple code from laravel documentation.
public function testDownload(){ $pathToFile =