Define Your Google Preferred Domain with Laravel Middleware

This is my second blog post about setting up Google preferred domain from code context for your Laravel application. In my previous post, I have explained a really simple way of doing it with almost no configuration available to set up the preferred version of your choice. In this pos...
Read more...

Easily Switch PHP versions on Linux with Script

If you are looking for best way to switch multiple PHP versions on your machine, you're at the right place to get the best solution for your requirement. Let's say on your working computer you have installed multiple PHP versions (for eg: PHP 7.0 and PHP 7.2). As a default version, t...
Read more...

PayPal Instant Payment Notification (IPN) Handling with Laravel

This is a follow-up article from my previous post A guide to Integrate Omnipay PayPal with Laravel, at the end of that article I have mentioned that I will be writing about handling PayPal Instant Payment Notification (IPN) with Laravel. So finally it is published, so you can go throu...
Read more...

Disabling CSRF on Specific Route via Middleware

I was lately working with PayPal API on my Laravel project. In the process of coding and testing for Instant Payment Notification (IPN) part, I got an issue with csrf token. The issue was mainly with the POST request to the application via external service, so it threw TokenMismatchEx...
Read more...

Eloquent: Query Builder Compare Two Date Columns

I regularly share my knowledge about Laravel, Web Development tips, and tutorials via my blog. Now, here in this article, I am going to cover about comparing two different timestamp columns to filter out records from the database. Recently I was working on filtering some API ac...
Read more...

Adding Custom Header with Response in Laravel

I was working out for the best way to add some custom header to my application for most of the view responses, I wanted the header to be "Cache-Control: no-cache, must-revalidate". I came up with the best solution with a laravel middleware and decided to share the code snippets...
Read more...

Automatically Posting to Facebook Page via Laravel Notifications

 A powerful feature that came out with Laravel v5.3 was Laravel Notifications. There are several numbers of notification channels created by the contributors in a github organization called laravel-notification-channels. The notifications feature is fully available with lat...
Read more...

Generating Never Expiring Facebook Page Access Token

I’ve been working on the new feature for my own blog to auto-posting the posts from the website to the facebook page via Facebook Graph API. My logic was just to make the process automated when I publish new blog post on my website end. Below, I will cover the processes that ar...
Read more...
Make Composer Faster

Speed up your Composer Install or Update Process

We all know that, whenever we go for running composer update, we, of course, need to wait until the dependencies are loaded and download. It usually takes up to 5-10 minutes to complete the full process of pulling down from the package hosted server. This waiting time depends on the p...
Read more...
Redirect After Login to Previous URL

Redirect to Previous URL After Logging in, Laravel v5.5

An end-user visit the website tries to view several products, services by navigating to different pages. If he finally wants to submit an order. Now the website, of course, takes him to login or register page to provide his personal information for shipping or billing purpose. After l...
Read more...
Integrating Medium Style Image Zoom

Integrating Medium Style Image Zoom

I'm sure you already know about Medium, a widely used and popular publishing platform to share, articles, important stores over the internet. Medium – Read, write and share stories that matter. Medium is an online publishing platform developed by Evan Williams, and launched...
Read more...