Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Let's Build a Referral System with Laravel
Rating: 5.0 out of 5(2 ratings)
18 students

Let's Build a Referral System with Laravel

Learn how to build a feature complete referral system with Laravel, completely from scratch.
Created byTapan Sharma
Last updated 4/2025
English

What you'll learn

  • Learn how to build a feature-complete referral system with Laravel, completely from scratch.
  • Understand the basics of creating unique referral codes for users.
  • Learn how to set cookies to track referral activities across your website.
  • Learn how to integrate Stripe subscriptions in a Laravel app
  • Learn how to design a simple dashboard to display detailed referral statistics for your users, this also includes the number of visits and clicks
  • Learn how to set up automated jobs to generate monthly CSV files with payout amounts.
  • Automatically update the status of referrals as paid when generating the CSV.
  • Display historical referral payments for users in an organized manner.

Course content

1 section25 lectures4h 15m total length
  • Introduction to the Course6:52
  • Installing a Fresh Laravel Project3:21
  • Creating the Referral Code Schema5:50
  • Generating Unique Referral Codes13:01
  • Retrospectively assigning Referral Codes5:27
  • Enabling Referrals with a PayPal Email Address13:46
  • Showing the Referrals Dashboard8:29
  • Showing the Referral Link8:27
  • Clicking to Copy to the Clipboard12:52
  • Showing the Referral Page and incrementing visits3:15
  • Setting the Referral Cookie11:43
  • Adding Plans11:38
  • Setting up Cashier6:12
  • Checking out with a Referral Coupon18:51
  • Webhooks and Stripe event Listener17:19
  • Linking Subscriptions to Referrals26:26
  • Showing Referral Stats14:49
  • Excluding Canceled Subscriptions3:29
  • Referral Payments Schema7:27
  • Logging Payments18:38
  • Scheduling Payouts and Marking as Paid6:14
  • Grouping Payouts7:25
  • Sending the Payout Email4:39
  • Generating a CSV Attachment12:43
  • Showing Historical Payouts to Users6:48

Requirements

  • Beginner Level knowledge of PHP/Laravel is required

Description

Learn how to build a feature-complete referral system with Laravel 11, completely from scratch.

This comprehensive course teaches you how to generate referral codes, track referrals using cookies, integrate referrals with subscriptions, and provide detailed referral statistics in a user-friendly dashboard. We'll also dive into the admin side, teaching you how to automate payout processes, mark referrals as paid, and manage historical referral payments seamlessly.

What You'll Learn

  • Generate Referral Codes: Understand the basics of creating unique referral codes for users.

  • Set Up Tracking Cookies: Learn how to set cookies to track referral activities across your website.

  • Integrate Referrals with Subscriptions: Learn how to connect the referral system to your subscription models.

  • Stripe Subscriptions: Learn how to integrate Stripe subscriptions in a Laravel app, and we'll provide commissions accordingly when someone buys a subscription.

  • Display Referral Stats: Learn how to design a simple dashboard to display detailed referral statistics for your users, this also includes the number of visits and clicks, along with conversions and data of referred users.

  • Automate Payout Processes: Learn how to set up automated jobs to generate monthly CSV files with payout amounts.

  • Mark Referrals as Paid: Automatically update the status of referrals as paid when generating the CSV.

  • Manage Historical Payments: Display historical referral payments for users in an organized manner.

Who this course is for:

  • Laravel developers who want to build a Referral System with Laravel