Support the ongoing development of →
posted 7 years ago
Input Forms
Last updated 2 years ago.

Without testing, I think you should be able to add another parameter 'public' to the storeAs() function.

$file->storeAs($path, $fileName, 'public');

Then, assuming you store the path somewhere, you can do the following to access the file and either show or download it:

{{ asset('storage/' . $file->path) }}
Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?

vikiedr vikiedr Joined 11 Jun 2017


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.