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.

Laravel v4.2 GroupBy and Paginate Problem with Eager Loading - Fixed

Disclaimer: This article only applies to Laravel v4.2, as we are backporting bugs in the framework to fix them in older projects. If you have been using Laravel since 2013 and later, you may have been using it since the popular release of Laravel version 4.2 on June 1, 2014.I've been...
Read more...

Image Upload in PHP: A Step-by-Step Guide

Handling image uploads is a common task in web development. This guide will walk you through setting up image uploads in pure PHP, utilizing Composer for dependency management and ensuring robust validation. Prerequisites Before we start, ensure you have PHP and Composer installed o...
Read more...

Image Upload in Laravel: A Comprehensive Guide

Uploading files is a common requirement in web applications. Laravel provides a robust framework to handle file uploads with ease, ensuring security and validation. This guide will walk you through setting up image uploads in Laravel, first using local storage and then extending it to...
Read more...
Basic PHP.jpeg

Getting Started with PHP: A Comprehensive Guide

IntroductionWelcome to the world of PHP! Whether you're completely new to programming or looking to expand your skills, PHP is a great language to learn. It's widely used for web development, powering everything from simple websites to complex web applications. In this guide, we'll wa...
Read more...
Custom PHP Function.jpg

A Custom PHP Function for Recursive Array Filtering

In PHP, working with multidimensional arrays often requires recursive functions to handle nested data structures. In this blog post, we'll explore an enhanced version of a recursive function designed to filter and trim data within a multidimensional array. I came up with this functi...
Read more...
Laravel Developer Cheat Sheet.jpg

Laravel Cheat Sheet & Full Reference

I assume you're landing on this page because, like me, you're a Laravel developer trying to find a full-fledged Laravel Cheat Sheet or a Laravel Developer Cheat Sheet for your shortcut to your daily Laravel development. Using a cheat sheet isn't limited to beginner or intermediate de...
Read more...

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