Welcome to the course! In this introduction episode, we jump right into what the course is all about—letting users in a Laravel app pick their own custom subdomains. We'll use Laravel Breeze to keep things simple, since it handles authentication and user profiles for us, but everything we cover can be used in any Laravel project.
I show you a demo of the subdomain feature: users can add a unique subdomain to their profile (with all the necessary checks like uniqueness and character restrictions), and once saved, they can visit their own area of the app via their new subdomain. This is all powered by looking up users by their subdomain from the database, and it only works for users who have set one up—otherwise, the subdomain-based routes just don't exist.
We also make sure that things like the main dashboard and other usual routes are protected on subdomain URLs, so your app's main navigation doesn't just pop up everywhere it shouldn't.
Throughout the series, we'll go step by step to make this clean and robust, talking about gotchas, best practices, and finally, deploying the app so you can see it live. In the next episode, we'll get hands-on by setting up the app and getting that all-important subdomain column ready. Let's get started!