Laravel 5.4 Storage link
First of all in the .env file create a variable named FILESYSTEM_DRIVER and set it to public
like this
FILESYSTEM_DRIVER=public
and then create symbolic link by run
php artisan storage:link
after that just use asset()
<img src="{{ asset('storage/'.$cv->photo) }}" alt="...">
It'll work fine 😊
The public
disk is intended for files that are going to be publicly accessible. By default, the public
disk uses the local driver and stores these files in storage/app/public
. To make them accessible from the web, you should create a symbolic link from public/storage
to storage/app/public
. Laravel doc
Create Symbolic link in Linux
ln -s source_file myfile