First of all, check if your server has the latest version of PHP.
First, try the following command:
php artisan storage:link
If it works, you won’t have to worry about the rest, otherwise continue with the following:
php artisan config:clear
php artisan cache:clear
If that doesn’t work, continue with the following command:
php artisan optimize:clear
If that still doesn’t work, continue with the following: If you have the “public_html” folder and you have uploaded the files that exist in your “/public” folder to “/public_html”, you should modify the .htaccess file by placing the following command:
RewriteRule ^storage/(.+) public_html/storage/$1 [L]
If this doesn’t work, try creating a backup of your hosting files and upload your Laravel project again.
Or try to set your domain name in APP_URL (.env file).
![247532698-51a68588-9d01-4316-9cd3-0d273a677647](https://private-user-images.githubusercontent.com/79022615/287477044-62d497d9-4a0a-4dca-8202-7895f230d7f6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MTI3MjEsIm5iZiI6MTcyNDcxMjQyMSwicGF0aCI6Ii83OTAyMjYxNS8yODc0NzcwNDQtNjJkNDk3ZDktNGEwYS00ZGNhLTgyMDItNzg5NWYyMzBkN2Y2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDIyNDcwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzODQxMjlhOTA1NmViYTE0NzVlNjExZjY5NGFhOWM3YmVlOGJjYjI5YzNkOWQ3OWY0ZDQ1NDI3NDcwN2M1ODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4EMDaNxPOfvjB83DJgJ7_1bvSez8hvCRWx9y4thO_l4)