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


Image not found when uploaded into live hosting


Changing the Storage Path



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.



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.