Laravel Cheat Sheet & Full Reference
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
1M ago
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 developers; it's valuable for developers at any level. It serves as a quick reference for Laravel's code syntax and ecosystem features, making it essential for professionals as well. I've previously covered a few versions of the Laravel Cheat Sheet on this blog, but some of them are already unlisted because they no l ..read more
Visit website
An Ultimate Guide to Starting a Successful Blog in 2024
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
1M ago
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 help you launch a successful blog in 2024. Let's dive in and make your blogging dreams a reality! Discover the essential steps to start a blog successfully, including choosing a niche, selecting a platform, crafting engaging content, and implementing effective strategies for growth and monetization. Here are 10 ..read more
Visit website
MySQL SELECT Query: Fallback to Another Column for Null or Zero Values
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
2M ago
Introduction In 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 using Laravel Eloquent queries. As I was working on the report section of my project, I needed to fetch abandoned carts and display their values. The prices were stored in a table called product_prices, which contained various pricing conditions. If a price matched in this table, it was used. Otherwise, the query wo ..read more
Visit website
Scroll to Element in JavaScript: A Complete Guide
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
2M ago
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 smooth scrolling on your website using different frameworks and libraries. PrerequisitesBefore we begin, ensure that you have a basic understanding of HTML, CSS, and the respective framework or library you'll be using (JavaScript, jQuery, Vue.js, or Alpine.js). HTML StructureLet's start by defining the HTML structure ..read more
Visit website
Leveraging Laravel Eloquent: Retrieving Foreign Key Constraints from the Database
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
2M ago
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 retrieve foreign key constraints from the database, streamlining your development process and ensuring data consistency. Understanding Foreign Key Constraints: Before diving into the implementation details, let's briefly review what foreign key constraints are and why they're essential. Foreign key constraints establish ..read more
Visit website
Handling Webhook for PayPal REST API on eCommerce Platforms
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
2M ago
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 for Online Payments Let's begin by adding the route needed to access the web app with a POST request from the PayPal webhook service. /** * PayPal REST API Webhook */ Route::post('/checkout/webhook/paypal/rest', [ 'as' => 'checkout.webhook.paypal.rest', 'name' => 'PayPal Rest Webhook', 'uses ..read more
Visit website
How to Integrate PayPal REST API for Online Payments
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
2M ago
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 articles were based on the same API version but used different libraries built by developers using PHP. Follow this link: PayPal Payment Gateway for Business to scroll through those articles. Let's get started with the PayPal REST API, which we will cover in the article below. PayPal is a globally recognized payme ..read more
Visit website
How to Migrate Your Blog to a New Domain
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
2M ago
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 provider. Why did I change the hosting provider? I had been using my previous hosting provider from 2015 until August 2023. However, we have now switched to Vultr as our hosting provider. The sole reason is that I have several other VPS servers with Vultr for my clients. With my previous hosting, I only had one server ..read more
Visit website
Handling Webhook for PayPal REST API on eCommerce Platforms
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
7M ago
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 for Online Payments Let's begin by adding the route needed to access the web app with a POST request from the PayPal webhook service. /** * PayPal REST API Webhook */ Route::post('/checkout/webhook/paypal/rest', [ 'as' => 'checkout.webhook.paypal.rest', 'name' => 'PayPal Rest Webhook', 'uses ..read more
Visit website
How to Migrate Your Blog to a New Domain
Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development.
by
7M ago
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 provider. Why did I change the hosting provider? I had been using my previous hosting provider from 2015 until August 2023. However, we have now switched to Vultr as our hosting provider. The sole reason is that I have several other VPS servers with Vultr for my clients. With my previous hosting, I only had one server ..read more
Visit website

Follow Sujip Thapa's Blog - Purely about Laravel, PHP, Web Development. on FeedSpot

Continue with Google
Continue with Apple
OR