Back Button Techniques
How to Read Code: Season 2

How to Read Code: Season 2

It's time for a new entry in our "How to Read Code" series. This season, we'll dive into the Laravel Breeze source code, taking every opportunity to peek behind the scenes to learn how and why it was constructed in this way.

While it's often unnecessary to review the underlying code of the packages and tools you use, that doesn't mean you won't benefit from doing so. If you want to become a better programmer, you must learn, read, and write a lot of code. This series focuses on the reading.

Intermediate
8 episodes
1h 19m
8
Latest Episode in This Series

Added 3 days ago

Rewrite the Password Confirmation Functionality

It's important that we don't fall into the trap of reading a lot of code, but...

Watch
How to Read Code: Season 2

How to Read Code: Season 2

Version: Laravel Breeze 1

It's time for a new entry in our "How to Read Code" series. This season, we'll dive into the Laravel Breeze source code, taking every opportunity to peek behind the scenes to learn how and why it was constructed in this way.

While it's often unnecessary to review the underlying code of the packages and tools you use, that doesn't mean you won't benefit from doing so. If you want to become a better programmer, you must learn, read, and write a lot of code. This series focuses on the reading.

Begin
8
Latest Episode in This Series

Added 3 days ago

Rewrite the Password Confirmation Functionality

It's important that we don't fall into the trap of reading a lot of code, but rarely...
Watch

Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.
    1. Free Episode Run Time 1:36

      This season, we'll take a look at a first-party package: Laravel Breeze. For this style of series, we're not as focused on how to use the underlying tool (even though we'll figure that part out in the process). Instead, we're more interested in reviewing how it was constructed and wired up behind the scenes.

    2. Free Episode Run Time 13:27

      In the last episode, we installed Laravel Breeze and prepared to run the initial breeze:install command. But before we do that, let's take a look at how that particular command was prepared.

    3. Free Episode Run Time 8:15

      At this point in our learning, we've realized that the Laravel Breeze package is primarily an Artisan command. That's it. It's a command that copies over some existing stubs to your new Laravel project, and then updates your package.json file. This means the core of what Breeze provides is in those stubs. With that in mind, let's begin by reviewing basic registration.

    4. Free Episode Run Time 8:54

      If you're not yet familiar with Blade components, that register.blade.php may initially seem odd. What are all these HTML-looking x-application-logo and x-auth-card tags?

    5. As we finish up our review of registration, this will give us an opportunity to step outside of Breeze and look at how Laravel handles email verification. As part of this lesson, we'll also install MailHog, which will allow us to easily intercept and review emails that our application sends.

    6. After you install Breeze into your application, you are entirely responsible for the code. You can adjust the code how you see fit to suit your current project.

    7. Let's review the basic flow for requiring password confirmation before loading a particular route. Pay special attention, because in the following episode, we'll rewrite the functionality from scratch.

    8. It's important that we don't fall into the trap of reading a lot of code, but rarely writing any of our own. With that in mind, let's take what we learned about password confirmations in the previous episode, and rewrite the functionality from scratch. Think of it like a kata. Once finished, we can throw away the code entirely. The goal is to focus on general workflow and habit building.