How to create an SSH shortcut

In this post, I would like to show you a quick way to SSH into VMs. Using this approach you don’t have to type  ssh -i ..etc every time.  Let’s open your ~/.ssh file and create a file called config and […]

How to deploy slim framework on CPanel

In this post, I would like to show you deploying your slim framework project to CPanel (without SSH access). In general, for CPanel, the web root directory will be  public_html directory.  Slim3 Framework Authorization […]

Laravel Eloquent Increments and Decrements value

In this post, I would like to show you the hidden and useful functions of Laravel’s Eloquent ORM to Increment and Decrement value of the fields in the database column. In my recent project, I used increment() and […]

Populate Select2 with AJAX data based on X event

In this post, I would like to show you data populating in select 2 dropdown based on x event and it will get data from the remote server using Http protocol, the same technique you can apply for dependent dropdowns to […]

Laravel 5.6 Socialite Facebook Login

In this tutorial, we’re going to explain how to integrate Facebook login in Laravel based application using Socialite. The Socialite is Laravel’s official package, which is making is easy to authenticate with external […]

How to send emails from shell script using sendgrid

In my recent project, we have developed a small process monitoring system to check the health of the process and it should send emails if the process goes down. For sending emails we have used SendGrid and below is the […]

How to get last inserted id in Laravel

In this post, I would like to show the different ways to get last inserted ID from the database table when working with Laravel PHP Framework. In the core PHP, we will get last inserted ID with mysqli_insert_id() or PDO::lastInsertId() […]

How to get Mysql Table Comments

Let’s assume that we have a table with the following table schema: Run below SQL query to see the employee table information: The output of the preceding command will look like below shown: Show table comments By […]

Merging PDFs using PHP and ghostscript

In this post, We will show you how you can use Ghostscript with PHP to merge multiple PDF files into single file. Using Ghostscript, it is possible to merge multiple PDF files into a single PDF file with a single command […]

How to use Twilio to send SMS with CodeIgniter

In this post, I would like to show using of Twilio library within your CodeIgniter 3 project. Twilio is cloud communications platform for building SMS, Voice & Messaging applications. Here are the steps to send SMS […]

DMCA.com Protection Status