Playing
01. Introduction

Transcript

00:00
Laravel Actions is a package that gives you a completely new way of defining logic in your app.
00:05
Simply put, Actions are classes that do one thing. This could be create a user, update a post, or something more complex like create a paid subscription. Laravel Actions allows you to run these individual tasks as controllers, console commands, and listeners. And this makes it much easier to focus on what your application does,
00:28
rather than the broader design decisions that you would usually make within an app. In this course we're going to cover everything you need to know about this package to get started. We'll start out with some very simple actions that we'll just run from a controller. Then we'll look at conveniently running actions as controllers,
00:46
and as console commands, and event listeners. And we'll talk through the course about the benefits of this to see if it's the right fit for your app. Of course we'll also cover testing, since defining our single actions makes testing a lot easier. Okay, so if you're interested, let's jump over to the first episode and get our first action created.

Episode summary

Welcome to the course! In this episode, we kick things off by introducing you to Laravel Actions, which is a package that helps you organize your application logic in a really clean way. With Actions, you can neatly wrap up individual tasks—like creating a user or updating a post—inside their own class. This means you can easily run them from controllers, console commands, or event listeners, making your app much simpler to manage.

Throughout the rest of the course, we’re going to walk through basic to more complex actions, show how to use them in different parts of your app, and discuss the practical benefits—you’ll see if this pattern fits your needs! We’ll also touch on why Actions can make testing easier, so you can build confidently. Ready to see Laravel Actions in action? Let’s jump in and build our first one!

Episode discussion

No comments, yet. Be the first!