How to setup maintenance mode in CodeIgniter

In this post, I will show you how easy it is to setup maintenance mode in CodeIgniter using CI’s hooks. while updating your web application its always better to show meaningful maintenance message to the end users, […]

How to connect to a MSSQL Server With PHP

I recently had to connect to an MSSQL Server using PHP on an Ubuntu system using PHP. To connect to MSSQL using PHP 5.6 we’ll need to use PDO’s DBLIB (PDO_DBLIB). So let’s install the required packages […]

PHP 7.1 – Support for keys in list()

You can now specify keys in list(), or its new shorthand [] syntax. This enables destructuring of arrays with non-integer or non-sequential keys. I hope you like this Post, Please feel free to comment below, your suggestion […]

PHP 7.1 – Symmetric array destructuring

In this post, I will show you how you can use the new Symmetric array destructuring feature of PHP7.1 version. In the previous version of PHP, we used list method to destructure arrays for assignments. The shorthand array […]

How to Integrate Google reCAPTCHA

In this post, I would like to show you how to integrate Google reCAPTCHA. Google reCAPTCHA is more user-friendly and reliable which protects your websites form spams and robots. What is reCAPTCHA? If Google feels that […]

How to enable CORS in Slim3 framework

In this post, you will learn about Cross-Origin Resource Sharing. Http requests are restricted by the same-origin policy, which means where scripts can be loaded from the same Origin. Specifically, the protocol, domain, […]

How to Use Eloquent in Slim Framework

The Eloquent ORM makes it incredibly easy to interact with a database. Today we’ll look at how we can use Eloquent to interact with our database inside your Slim Framework. The Eloquent ORM provides an ActiveRecord […]

How to delete file(s) in Laravel 5

Deleting files from the file system is very common task nowadays and it can be done in several ways. But here I am gonna show you deleting files in the Laravel way. We generally use PHP’s built-in unlink() function […]

Laravel 5.6 – REST API – JWT Authentication

In my last tutorial, we created an APIs for todo application without authentication. In this tutorial, I would like to show you building JWT based login system. Let’s start… Create Project Create a brand new […]

Laravel 5.6 ReactJS Tutorial

In this post, I would like to show you Laravel 5.6 project setup with React JS as frontend framework. In Laravel 5.5, Taylor Otwell introduced new frontend scaffolding via a new artisan preset command. We gonna leavrage […]

Using mPDF with CodeIgniter 3

In my previous post, I wrote a tutorial on Generating a PDF in Codeigniter using mPDF and in that tutorial I covered mPDF library manual installation steps, without composer. So in this post, I would like to use CodeIgniter […]

PHP 7.1 – Catching Multiple Exception Types

We general use PHP’s try..catch blocks to handle exceptions. If the try block could cause one of several different exceptions they can each be handled separately with their own catch section. As shown below If you […]

Laravel 5.6 – New @method and @csrf Blade Directives

Laravel is gonna introduce two new Blade Directives as part of 5.6 release, @method and @csrf Directives. In the current Laravel 5.5 version, we are doing the following at the top of forms to create hidden inputs for the […]

DMCA.com Protection Status