Laravel Actions

screenshot of Laravel Actions

Laravel components that take care of one specific task

Overview

Laravel Actions is a package that introduces a new way of organizing the logic of Laravel applications by focusing on the actions your applications provide. Instead of creating multiple components like controllers, jobs, and listeners separately, Laravel Actions allows you to create PHP classes that handle specific tasks and run them in various contexts. By shifting the focus to "What does my application actually do?", Laravel Actions simplifies the development process.

Features

  • Specific Task Handling: Classes handle specific tasks.
  • Organized Logic: Focuses on actions provided by the application.
  • Versatile Execution: Runs classes as controllers, jobs, listeners, and more.
  • Object Execution: Actions can be run as objects.
  • Controller Integration: Actions can be registered as invokable controllers.
  • Listener Support: Actions can be registered as event listeners.
  • Job Execution: Supports running actions as jobs.
  • Command Execution: Allows running actions as commands.

Summary

Laravel Actions is a package that simplifies the organization of logic in Laravel applications by focusing on specific tasks and providing a flexible way to run actions in various contexts. By shifting the development focus to the core functionality of the application, developers can create cleaner and more maintainable code. The ability to run actions as objects, controllers, listeners, jobs, and commands offers a versatile approach to handling application logic. Check out the full documentation at laravelactions.com to explore all that Laravel Actions has to offer.