How to change the default storage path- laravel Image path directory change when live site

0
77

Image not found when uploaded into live hosting

/public_html/laravel/config/filesystems.php

Changing the Storage Path

 

Problem

You need to change the location of Laravel’s storage path.

The default directories Laravel uses for storing data to the file system does not work for your installation. Permission or other write errors occur.

 

Solution

Edit bootstrap/paths.php and change the storage location.

You may also need to create the storage directory and any subdirectories you’re using.

Also create the sessions and cache directories if needed.