In this first episode, we kick off the course by outlining exactly what we're going to build together: a complete referral system in Laravel, from scratch! You'll get an overview of all the main features we'll cover, like generating referral links for users, tracking who signs up using those links, and handling Stripe payments and webhooks to track subscriptions and payouts.
We start out with a demo, walking through the referral dashboard so you can see how users can grab their referral link, monitor how many people they've referred, track who signed up, and see how much they're earning. We also explain how active referrals and payouts are displayed, and talk about the spreadsheet that's generated for payouts each month – handy if you want to automate payments or just manage them manually.
Then, we go through the sign-up flow live: you see how a new user signs up, gets their referral code, and how the system handles someone signing up via a referral link (including the automatic 20% discount for the new user). We're peeking into the database too, so you see behind the scenes how referral codes, linked subscriptions, multipliers, and payments are all stored.
Throughout, there are tips about how things like the discount percentages are flexible, and reminders that certain techniques (like Stripe webhooks and scheduled jobs) are reusable in other apps, not just for referrals. By the end, you'll have a clear idea of both what we're building and how you'll be able to tweak it to fit your own needs. Let's get started!