Update Query to change value from Old to New for Particular Table

To update a new value over the old one in a table in MySQL, you can use the UPDATE statement. Here’s the general syntax: While we are migration WordPress we often be in a situation where we need to update the exting urls with new Urls. Here are some examples of wordpress update Query for […]

TinyMCE Image upload using Laravel

TinyMCE is a popular open-source JavaScript library that provides a rich text editor for web applications. When we insert or paste image into the editor, images_upload_handler handler function in TinyMCE is used to uploading of images to the server. Update your tinymce initialize code as below, You need to make sure about selector and other […]

How to get nearest area lat and lng in Laravel

To get the nearest area from a set of latitude and longitude coordinates in Laravel, we can use the haversine formula to calculate the distance between the coordinates and a set of known coordinates for the area. The haversine formula calculates the distance between two points on a sphere based on their latitude and longitude […]

How to fix .gitignore not working issue on our repository

Sometimes our .gitignore file isn’t working as expected, there are a few reasons why this might be happening. Here are a few solutions that we can apply: Make sure that your .gitignore file is in the root directory of your repository. Git looks for this file in the root directory, so if it’s in a […]

Laravel Packages

Laravel is a popular PHP framework for web development, and there are many packages available for it that can extend its functionality. Some examples of popular Laravel packages include: Laravel Debugbar: This package adds a debug bar to the bottom of the page that shows information about the current request, such as route, controller, and […]

How to make an HTTP request in Javascript?

To make an HTTP request in JavaScript, you can use the XMLHttpRequest object or the newer fetch() API. Here’s an example using XMLHttpRequest: And here’s an example using fetch(): Both examples make a GET request to the specified URL. You can replace GET with other HTTP methods (such as POST, PUT, etc.) to make requests […]

Remove index.php from url laravel

1) Apache Virtual Host If we have full access of our server than we can remove index.php from the url using virtual host. 2) .htaccess We can also remove index.php from using .htaccess. We need to create .htaccess file in our root directory of Laravel project if its not available. Place the below code in […]