lundi 25 juin 2018

What's the URL to my uploaded file?

I'm trying to publicly access an uploaded file but can't figure out what the URL would be? I know it's a stupid question but I can't seem to figure this out.

Heres my code for saving the file, I can see it being stored in the storage folder so the upload seems OK!

$path = Storage::putFile('apps/icons', $request->file('app_icon'), 'public');

dd(Storage::url($path)); gives me a path but when visiting it in the browser I only get the laravel default 404 page...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire