Laravel storage link does not work in cPanel

When we transfer our Laravel project to cPanel, the storage link does not work in some cases. If you do not have SSH access, you cannot run php artisan storage:link command. So the solution is to put the code given below in your web.php file, then open a browser and go to the link yourdomain.com/storage-link.…

Read More

How to prevent the browser from caching a json file?

Recently I faced an interesting issue, if I fetch a dynamically updated JSON file, it shows me cached data.  The easiest way to overcome this issue is to append the source string with some random parameter, which gets ignored on the server side. This way, the browser never caches the JSON file as it appears…

Read More