Support the ongoing development of Laravel.io →
posted 7 years ago
Input Forms
Last updated 2 years 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 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

vikiedr vikiedr Joined 11 Jun 2017

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.