lundi 13 janvier 2020

How to access a file from storage in Laravel 5.8

I have a file inside my storage folder. Located path :

storage/app/public/$/10012940/gallery/289sdas98e.jpg

$, 10012940 and 289sdas98e.jpg is dynamic and can change.

Route::get('storage/{$folderDirectory1}/{$customerReference}/gallery/{file}', function ($filename)
{

});

Since its a nested folder I cannot find much on internet as to what the route should look like. Also how to go about doing something like that.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire