Programmatically publish tweet on the Twitter using PHP

The Twitter is the most popular social network. Twitter is mostly used for marketing of your product or blogs. Twitter is the social network many times we don’t have time to manually publish tweet on time. So let’s how we can Programmatically publish tweet on the Twitter using PHP

Continue reading Programmatically publish tweet on the Twitter using PHP

Laravel 5.5 HMVC modular structure

Laravel is the amazing framework. However when it comes to writing more complex and bigger application easily. Nowadays the Laravel is mostly used PHP framework for developing complex and bigger application. The default Laravel structure comes with cumbersome and not ideal.

Continue reading Laravel 5.5 HMVC modular structure

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

PHP – How to remove duplicate values from the multidimensional array?

Many times we need to remove duplicate value form the multidimensional array. Let’s see how we can remove duplicate value from the multidimensional array in PHP.

Continue reading PHP – How to remove duplicate values from the multidimensional array?

How to remove duplicate value from the array using PHP?

Many time we get the array with contains the duplicate value. how we can find that duplicate value form array and remove it easily. we can remove duplicate value from the array using array_unique() function of PHP. Let’s the example If our array look like.

Continue reading How to remove duplicate value from the array using PHP?

How to get the last inserted record Id on Codeigniter?

The Codeigniter is the Lightweight fast and object-oriented PHP Framework. Sometimes we need the last inserted record Id for inserting the related data into another table. When we are working on product module at that time we insert product data to the database and also we need to insert product-related data like product attribute insert to the database we need the product id for stored attribute data.

Continue reading How to get the last inserted record Id on Codeigniter?

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?