Support the ongoing development of →
Input Forms
Last updated 2 weeks 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 4 years ago.

Sign in to participate in this thread!


Your banner here too?

vikiedr 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.

© 2022 - All rights reserved.