mardi 29 novembre 2016

Could not get the image file path from the storage folder. What am i missing?

Here is the code that saves my image inside /storage/app/public folder

$path = $request->file('question_image')->store('public');

The laravel 5.3 documentation says I have to create a symbolic link from /public/storage to /storage/app/public folder hence I did by using command

php artisan storage:link

At this point I am successful to store my images inside /storage/app/public.

Now what is understood is that I can get those files using

echo asset('storage/file_name.jpeg');

But no luck whatsoever.

Please let me know what I am missing here?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2gIj96i
via IFTTT

Aucun commentaire:

Enregistrer un commentaire