Programming
How to secure custom REST API endpoints in WordPress?
PhpMyAdmin: No connection could be made because the target machine actively refused it
This error mostly occurs once we change the default port from 3306 to something else. To resolve this error we have to add the following line in the config.inc.php file which is located at C:\xampp\phpMyAdmin\config.inc.php.
Read MoreWrap ordered list items with square bracket using CSS
We can wrap ordered list items with square bracket using the code given below. Sometimes you may require it if you show a list of publications. We can replace [] with anything if we want.
Read MoreLaravel 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 MoreHow 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 MoreHow to fix sending email twice on every request (laravel 7.0)
In laravel version 7, many programmers may face a problem that two emails are sent on every single request. To overcome this issue, we can use redirect instead of return statement.
Read More