close

Laravel 5.4 Storage link

Hello Guys, How are you all? Hope You all Are Fine. Today we are talking about Laravel 5.4 Storage link in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

Today we are talking about Laravel 5.4 Storage link in php.

  1. How To Solve Laravel 5.4 Storage link Error ?

    To Solve Laravel 5.4 Storage link Error Go to public directory and run:
    rm storage Then go to project root and run:
    php artisan storage:link

  2. Laravel 5.4 Storage link

    To Solve Laravel 5.4 Storage link Error Go to public directory and run:
    rm storage Then go to project root and run:
    php artisan storage:link

Solution 1

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 😊

Solution 2

Go to public directory and run:

rm storage

Then go to project root and run:

php artisan storage:link

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment