henrywhitaker3/laravel-actions

Simple actions package for Laravel

Installs: 112 084

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/henrywhitaker3/laravel-actions

v1.0.5 2021-02-06 09:50 UTC

This package is auto-updated.

Last update: 2025-10-06 20:14:45 UTC


README

Latest Version on Packagist Tests status StyleCI

A simple Laravel actions package.

Installation

composer require henrywhitaker3/laravelactions

Usage

To create a new action, run:

php artisan make:action <name>

This will create a new action in App/Actions. You can then use the action in one of two ways:

$action = new SomeAction();
$action->run();

Or you can use the run helper function:

run(SomeAction::class);

You can pass arguments for the action's run method as the subsequent arguments for the helper method:

run(SomeAction::class, $arg);
run(SomeAction::class, $arg1, $arg2);

License

MIT license. Please see the license file for more information.