PHP get latitude and longitude from address using Google geolocation API

How to get latitude and longitude from address using Google geolocation API PHP. Many times we need to get the latitude and longitude from the address given by the user. Let’s see the example of getting the latitude and longitude from address using Google geolocation API.

Continue reading PHP get latitude and longitude from address using Google geolocation API

How to set custom payload on Laravel JWT?

How we can set the custom payload on Laravel JWT auth package. The payload means many times we need to store some user related detail in the session when user login. Something like user education, jobs etc.. related data. So we want to store more user related detail on JWT auth token.

 

Let’s how we can set custom payload on JWT auth token.

Continue reading How to set custom payload on Laravel JWT?