How to get Client IP Address in Laravel 5

Sometime you need to track the ip address of the visitors for different reasons. In this tutorial, I would like to show you, how to get IP address of clients in Laravel application. In PHP you use super global variable […]

Laravel 5 Pagination with array

Laravel provides pagination for Eloquent results out of the box, but for custom data we need to do the pagination manually. In this tutorial, I’ll use Laravel5 LengthAwarePaginator class to show you how you can create […]

Laravel 5 – SHA1 encryption instead of BCrypt

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

Laravel 5 – Prevent Browser back button after Logout

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

Laravel 5 redirect (some) requests to HTTPS

I know we can achieve same with other methods but I am going with Laravel Middleware. So let’s create Middleware called “ForceHttpProtocol”. Our ForceHttpProtocol middleware will redirect every request […]

How to install Laravel 5

In this post I am going to share laravel installation steps. We Can install laravel by using composer and laravel installer. Laravel Installer is a new features which is introduced in Laravel 4.1, which can create a project […]