Support the ongoing development of Laravel.io →
Input Forms
Last updated 2 weeks ago.
0

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

Sign in to participate in this thread!

LoadForge

Your banner here too?

vikiedr vikiedr vikiedr Joined 11 Jun 2017

Moderators

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 Laravel.io - All rights reserved.