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.
12 episodes1 hr 2 mins

Overview

Actions are single classes that do one thing. Laravel Actions is a package that allows you to run these classes as anything you want, whether it's a controller, listener, console command – or just on its own.

Keeping your app structure to single classes like this lets you focus on what your app does rather than the design decisions around controllers, listeners and commands.

Single actions are also easier to test, and we'll also cover that!

This course is for you if:

  • You'd like to try a fresh approach to structuring your apps
  • Your app shares logic, and you'd like to combine this logic into one class that runs anywhere
  • You've heard of (or used) Laravel Actions, and you'd like a run-through
Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episode discussion

No comments, yet. Be the first!