Lifetime access is $100 off. Ends this week.Join here →

Build a Referral System with Laravel

24 episodes2 hrs 39 mins

Course overview

Let's build a feature complete Laravel referral system, completely from scratch.

We’ll cover generating referral codes, setting a cookie to track the referral process, hooking up referrals to subscriptions and displaying detailed referral stats in a dashboard, so your users can see how they're doing.

On the admin side, we'll set up a job to automatically generate a CSV with all the amounts you need to pay out each month, automatically mark referrals as paid, and display historical referral payments for users.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episodes

0%
Your progress
  • Total: 2h 39m
  • Played: 0m
  • Remaining: 2h 39m
01. Introduction and demo
8m 17s
0%
02. Creating the referral code schema
4m 3s
0%
03. Generating unique referral codes
8m 7s
0%
04. Retrospectively assigning referral codes
3m 41s
0%
05. Enabling referrals with a PayPal email address
7m 8s
0%
06. Showing the referrals dashboard
4m 30s
0%
07. Showing the referral link
6m 48s
0%
08. Clicking to copy to the clipboard
5m 27s
0%
09. Showing the referral page and incrementing visits
3m 29s
0%
10. Setting the referral cookie
5m 53s
0%
11. Adding plans
5m 10s
0%
12. Setting up Cashier
3m 13s
0%
13. Checking out with a referral coupon
10m 5s
0%
14. Webhooks and Stripe event listener
8m 18s
0%
15. Linking subscriptions to referrals
15m 8s
0%
16. Showing referral stats
11m 54s
0%
17. Excluding cancelled subscriptions
3m 57s
0%
18. Referral payments schema
4m 24s
0%
19. Logging payments
10m 35s
0%
20. Scheduling payouts and marking as paid
6m 7s
0%
21. Grouping payouts
6m 49s
0%
22. Sending the payout email
2m 37s
0%
23. Generating a CSV attachment
10m
0%
24. Showing historical payouts for users
4m 19s
0%