در حال بارگذاری ...

Introducing Laravel Breeze0:00

For Season 2 of How to Read Code, we're going to take a look at Laravel Breeze. So you may know that Laravel offers two authentication starter kits to get you up and running. Laravel Breeze is going to be the simpler of the two. So that should make for great material for this series. Now, the thing to keep in mind is, for this style of series, we're not as focused on, here's how to use Breeze. We'll figure that out in the process, it's very simple. But really, what we're mostly focused on is, how does it work behind the scenes? For example, if we go into the source directory, what happens in this service provider? How does it install Breeze into your application?

Exploring Breeze Internals0:33

For example, if we go into the source directory, what happens in this ServiceProvider? How does it install Breeze into your application? Where are these stubs you see here, and how are they integrated with your project? So our focus is less on how to use the tool, and more on how was the tool itself constructed? With, of course, the point being, how can we use some of these techniques within our own projects? So let's finish up this episode by installing a brand new project, laravel new breeze. You'll see I'm using Laravel 8.5.9. Alright. Next, we'll go ahead and install Breeze, and it's pretty simple. Create your new app, cd into it, require Breeze, and save it as a development dependency.

Installing Breeze Package1:11

Next, we'll go ahead and install Breeze, and it's pretty simple. Create your new app, cd into it, composer require laravel/breeze --dev, and save it as a development dependency. And then the final step is to call php artisan breeze:install. But I'm going to hold off on that, because in the next episode, before we run this command, let's figure out what exactly happens when you call it. Stay tuned.

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟