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.

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

Scroll to Element in JavaScript: A Complete Guide

IntroductionSmooth scrolling to an element on a webpage enhances user experience and navigation. In this tutorial, we'll explore how to achieve this effect using JavaScript, jQuery, Vue.js, and Alpine.js. We'll cover various methods and provide code examples to help you implement smoo...
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...

Handling Webhook for PayPal REST API on eCommerce Platforms

This is the continuation article for the previous article about PayPal REST API integration with PHP apps. This article assumes that you have completed a full-fledged PayPal integration using the library explained in the previous article.Please Read: How to Integrate PayPal REST API...
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...

How to Migrate Your Blog to a New Domain

Recently, we migrated this blog from a .co domain to a .com domain. Simultaneously, we also transitioned to Vultr as our hosting provider while making the move to the new domain.I started this blog in September 2015, as indicated by the billing history from my previous hosting provide...
Read more...

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

An Ultimate Guide to Starting a Successful Blog in 2023

Blogging is all the rage nowadays, offering a fantastic way to share your thoughts and connect with people worldwide. But if you're new to blogging, getting started can feel overwhelming. Don't worry! This article is here to help. We've put together a simple and comprehensive guide to...
Read more...

Advanced Query Debugging in Laravel 10: Mastering Efficient Techniques

Introduction: Debugging queries is an essential skill for Laravel 10 developers, and utilizing advanced techniques can greatly enhance the process. In this article, we will explore practical examples of query debugging using Laravel's query builder. We will focus on advanced methods,...
Read more...