Laravel 5.2 – Implicit model binding

Laravel’s route model binding has been around for a while, but Laravel 5.2 is about to make it even easier with Implicit model binding. Implicit model binding makes it painless to inject relevant models directly […]

Express js – Creating your own middleware

One of the greatest things about Express is that it is easily extended, which is achieved by using middleware. Middleware are functions that handle requests, which are invoked by the Express.js routing layer and we can […]

Array.from Function

ECMAScript 6 supports a generic Array method for converting an array-like object into one of its own.It is Array.from(). This method is very useful while converting iterable objects to arrays, code will be much cleaner […]

PHP get function arguments as array?

func_get_args() returns an array with all arguments of the current function.

PHP5.6 – splat operator Arrays and Traversable objects can be unpacked into argument lists when calling […]

Getting Started with Express.js

In this post I would like to write getting started steps for Express.js framework. What is Express? Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and […]

Laravel 5 – SHA1 encryption instead of BCrypt

Recently I have migrated core PHP application to the Laravel5 framework. The old application used SHA1 encryption so I have implemented Hashing contracts of laravel5 to use SHA1 instead of BCrypt. Create Directories in […]

Laravel 5 – Prevent Browser back button after Logout

In this post, I would like to share a simple Laravel5 Middleware which prevents going back to the previous protected page after Logout by hitting the back button on your Browser. When you hit the browser back button after […]

How to add custom class in Laravel 5

In this tutorial, I will show you how to add a custom PHP class in Laravel 5.x application. For example, Lets call our class Common.php. Create a directory called Mylibs in app directory along with your class, Ex: Common.php. […]

Laravel5 Inactivity idle session logout

In this post, I would like to show how to automatically log out the user after some period of inactivity. Session timeout or Session expire depends on the server configuration so in order to achieve our target we are going […]

Laravel 5 Maintenance Mode

Enabling and disabling maintenance mode in Laravel 5 is simple, you just need to issue following artisan commands – To enable maintenance mode php artisan down. To disable maintenance mode php artisan up. That is […] Protection Status