How to get file URL using Storage facade in laravel 5?

The Path to your Storage disk would be :

$storagePath  = Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix()

I don’t know any shorter solutions to that…

You could share the $storagePath to your Views and then just call

$storagePath."/myImg.jpg";

Leave a Comment