Laravel Actions

Laravel Actions

  • 12 videos
  • 01 h 02 min
  • Beginner
  • Membership

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

Episodes

  • 01. Introduction

    01:08

  • 02. Creating your first action

    09:43

  • 03. Resolving actions from the container

    02:30

  • 04. Using actions as a controller

    04:15

  • 05. Validating controller actions

    02:45

  • 06. Route model binding in actions

    04:25

  • 07. Authorizing actions

    03:48

  • 08. Actions as event listeners

    08:30

  • 09. Actions as commands

    05:51

  • 10. Actions inside actions

    04:29

  • 11. Testing actions

    04:03

  • 12. Mocking actions

    10:41

Reviews

No review yet.

Author


Alex Garrett-Smith Profile Picture

Alex Garrett-Smith

Hey, I'm the founder of Codecourse and a full-stack developer of over 10 years.