Package

Lorisleiva Laravel Actions

Laravel components that take care of one specific task

Package

lorisleiva/laravel-actions

View on GitHub →

Overview

What Lorisleiva Laravel Actions does

Laravel Actions shifts application logic organization by allowing developers to encapsulate tasks into standalone classes that can function in various roles like controllers, jobs, or listeners.

The package encourages developers to rethink their approach from managing traditional components—such as controllers and jobs—to focusing on distinct actions that reflect what their applications actually do. By creating a class dedicated to a single task, developers can streamline their project's architecture and easily manage functionality as their application grows.

Developers can create actions using Laravel's Artisan command, and each action can be executed in different modes, like 'asController', 'asJob', or 'asListener', enabling versatility in application structure. This organization allows developers to register actions into routes or events, making the flow of data and execution more intuitive and simplifying scaling.

Actions can also be run as standalone objects using a simple 'run' method, which enhances flexibility and code reusability. This direct method of execution benefits projects that require clean, modular tasks that remain consistent, whether they're triggered by a user request or a backend job.

Laravel Actions fits well within the Laravel ecosystem by complementing its built-in tools while also empowering developers to write more readable, maintainable code. This package is particularly useful for developers or teams who are looking to simplify codebases by decoupling operations into focused, manageable units.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Lorisleiva Laravel Actions Related Articles

Automated Localization of Laravel Projects with Localazy and GitHub Actions image

Automated Localization of Laravel Projects with Localazy and GitHub Actions

Read article
Filament v4 Beta - Feature Overview image

Filament v4 Beta - Feature Overview

Read article
Organize Laravel Applications With Actions image

Organize Laravel Applications With Actions

Read article
Laravel Actions Package image

Laravel Actions Package

Read article
How to fix "SQLSTATE[HY000] [2002] Connection refused" Laravel error in GitHub Actions image

How to fix "SQLSTATE[HY000] [2002] Connection refused" Laravel error in GitHub Actions

Read article
Laravel Search String image

Laravel Search String

Read article

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift