Loading...

Display picture from laravel storage folder on vue project

First run the systm link command for the storage folder to be accessible to the public directory

php artisan storage:link

note now that the storage folder is now accessible from the public directory

The selected file is the image that we want to display in our Vue.js project

Get the URL which the laravel application is running from, in my case the app is running from http://explore.test:8000

Displaying the image from Vue.js application

JS Snippet