Simplifying Laravel Development with Invokable Controllers

Introduction Laravel, one of the most popular PHP frameworks, is renowned for its simplicity, elegance, and developer-friendly features. Among its array of powerful functionalities, "Invokable Controllers" stands out as an exceptional feature that can significantly enhance the organi...
Read more...

Flexibility of Invokable PHP Classes

Introduction PHP, being a versatile and widely used programming language, offers various features to enhance code flexibility and organization. One such powerful feature is "Invokable PHP Classes" or "Callable Classes." These classes can be invoked as if they were functions, enabling...
Read more...
eSewa Online Payment.jpg

eSewa Payment Gateway Integration with Laravel

In this article, I will show you how to integrate eSewa API v1.0 with the Laravel framework. eSewa is Nepal's first popular online payment gateway helping businesses to accept their payments online. As like a few other payment gateways integration with PHP, I've recently worked on a...
Read more...

Testing Packages on Composer with Specific Commit Before Creating New Tag

Composer, which is a modern developer tool for dependency management for PHP. It is used to declare the dependencies your project depends on it and it manages them very well for you. It is incredibly flexible to manage the dependencies in various stage of your project. Let's suppose...
Read more...
Laravel 5.6 Login, Register

Laravel 5.6 Login, Register, Activation with Username or Email Support

This is another interesting blog post about Laravel 5.6 login, register with username or email support. I've already published two articles about customizing the laravel authentication process. In this article, I will be helping you to build following things below, with Laravel v...
Read more...
PayPal Integration with PHP

PayPal Integration – Omnipay PayPal PHP Library v3.0 with Laravel

This is my third blog post about PayPal Integration with Omnipay payment processing library. In this article, I will mainly cover about the recent release v3.0, which is finally available for developers around the world. I'm sure many developers around the world were eagerly waiting f...
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...

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

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