close

How to create laravel storage symbolic link for production or sub domain system?

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error How to create laravel storage symbolic link for production or sub domain system? 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 I get the following error How to create laravel storage symbolic link for production or sub domain system? in php.

  1. How To Solve create laravel storage symbolic link for production or sub domain system Error ?

    To Solve create laravel storage symbolic link for production or sub domain system Error Another simple way is to run Executing php artisan storage:link Command Programmatically

  2. How to create laravel storage symbolic link for production or sub domain system?

    To Solve create laravel storage symbolic link for production or sub domain system Error Another simple way is to run Executing php artisan storage:link Command Programmatically

Solution 1


I solved this problem by another command for creating a symbolic link by terminal/cmd/shh:

ln -s /path/to/laravel/storage/app/public /path/to/public/storage

I solved this also Using laravel web route routes/web.php

Route::get('/foo', function () {
    Artisan::call('storage:link');
});

Solution 2

Another simple way is to run Executing php artisan storage:link Command Programmatically

On routes/web.php

Route::get('/foo', function () {
Artisan::call('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