LaravelPackages.net
Acme Inc.
Toggle sidebar
henrywhitaker3/laravel-actions

Simple actions package for Laravel

121.329
0
v1.0.5
About henrywhitaker3/laravel-actions

henrywhitaker3/laravel-actions is a Laravel package for simple actions package for laravel. It currently has 0 GitHub stars and 121.329 downloads on Packagist (latest version v1.0.5). Install it with composer require henrywhitaker3/laravel-actions. Discover more Laravel packages by henrywhitaker3 or browse all Laravel packages to compare alternatives.

Last updated

Laravel Actions

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.

Comments