MySQL SELECT Query: Fallback to Another Column for Null or Zero Values

IntroductionIn Laravel or any PHP project, there are times when you need a SQL query to select a column and check if its value is null or 0. If the value is null or 0, you might want to fallback to a different column from another table. This guide will show you how to achieve this usi...
Read more...

Leveraging Laravel Eloquent: Retrieving Foreign Key Constraints from the Database

Foreign key constraints play a pivotal role in maintaining data integrity within relational databases. However, accessing information about these constraints programmatically can be challenging. In this guide, we'll explore how to leverage Laravel's Eloquent ORM to effortlessly retrie...
Read more...

How to Integrate PayPal REST API for Online Payments

Before diving into the main content of the article below, let's go through the previously created articles on this blog.We have already created some articles that explain the classic PayPal API known as PayPal Express Checkout, also referred to as NVP/SOAP API. Most of the previous ar...
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...

Generate Free SSL Certificates with Let's Encrypt in Laravel: A Step-by-Step Guide

Introduction: In this tutorial, we will guide you through the process of setting up a simple Laravel website that allows users to generate free SSL certificates using Let's Encrypt, PKIJS, and JSZIP. SSL certificates are essential for securing websites and enabling HTTPS. We will walk...
Read more...

Unleashing the Power of Carbon in Laravel: A Comprehensive Guide

Introduction: In Laravel, working with dates and times is a common requirement for many applications. Fortunately, the Carbon library provides a powerful and intuitive API that simplifies date manipulation and offers a wide range of features. In this comprehensive guide, we will explo...
Read more...

Manage multiple PHP versions in Linux: 2022 edition

Do you also have the below question in your mind? How to manage multiple PHP versions in your local development environment? If you are having trouble managing multiple PHP versions in your local development environment, then you're at the right place to get the best solution for yo...
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...
What's New Coming to Laravel 5.7 Release

What's New Coming to Laravel 5.7 Release

Laravel a most popular PHP framework, which is actively supported and contributed open source project, which is reaching to its next release 5.7 in August 2018. The release will receive bug fixes until February 2019 and security fixes until August 2019. This release continues to imp...
Read more...
Password Less Authentication

Building a Password Less Authentication System with Laravel Signed Routes

I've seen many moderns apps are offering passwordless authentication in their platform. A lot of social media, email platforms are also offering the login with their API system by providing limited data necessary for user registration. A lot of modern webs, mobile apps using social l...
Read more...