MartinZeltin
11 months ago

How to access files from blade in my storage directory?

Posted 11 months ago by MartinZeltin

I have a file in my storage directory in /storage/invoices/invoice.pdf and I can't access it from my blade view file.

For example:

<a href="{{ storage_path() . '/invoices/' . $data->invoice_pdf }}">

this generates this url

http://localhost/var/www/new_project/storage/invoices/invoice_07_11_2018_18_59_36.pdf

Please sign in or create an account to participate in this conversation.