Sujip Thapa

A professional & experienced web developer, always ready to support PHP developers, creator of this blog, Laravel enthusiast, I like to share what I know through my blog regularly.

Australia Post API — Location & Postcode Predictive Search

In this article, I'm writing about auto-suggesting postcode, the suburb of Australia with Australia Post API while filling up the address form. I was recently working with an Australian client, it was an e-commerce platform to sell their products online. I've also integrated shippin...
Read more...

PSR-2 Coding Standard – Automatically Format in Sublime Text

It is always really nice when a code editor allows fixing your code to PSR2 coding standard by just hitting a single command. At my work, we heavily use Laravel framework, which follows the PSR-2 coding standard. So, every day we create new packages, add new classes we firs...
Read more...
instagram feed.jpg

Instagram Feed – Building Gallery with Real-time Data via Instagram API

I recently wrote an article about building an RSS feed section to publish Facebook Instant Articles automatically. In this article, I will show how to build a gallery on your website with the picture you have uploaded to your Instagram account. In this tutorial I'll show you an easy w...
Read more...
trending.jpg

How to Create A Trending Articles List using Google Analytics with Laravel

In this article, I will guide you about building top trending articles using Google Analytics API with Laravel framework. Recently I built this feature for my own blog, if you would like to view it open up the home page of my blog and see around the right sidebar. I have used the po...
Read more...
rss.png

Publishing Facebook Instant Articles via RSS Feed with Laravel

If you want to publish your web articles to Facebook Instant Articles platform and looking for the best way to export your quality articles from your blog to Instant Articles platform without worrying much about configurations, then you're at the right place now. In this post, I will...
Read more...

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...