title: How to serve the data returned from laravel Storage::disk('private')->get($file) as PDF
body: <p>My question is about the problem in link below :</p>
  
  <p><a href="https://stackoverflow.com/questions/57462558/understanding-file-storage-and-protecting-contents-laravel-5">Understanding file storage and protecting contents Laravel 5</a></p>
  
  <p>I need to use the same method mentioned in above example but instead of an image I need to provide a download link for PDF file or a link to open PDF file in browser and I can't do that because, as mentioned in above example's comments The <code>Storage::disk('private')-&gt;get($file)</code> returns the CONTENT of the file NOT the URL.</p>
  
  <p>Please tell me how can I convert the row data (content of file) to a file and provide the link for the users inside the view.</p>