frankliniwobi/laravel-action-command
A Laravel package to generate Action classes via Artisan
1,853
1
| Install | |
|---|---|
composer require frankliniwobi/laravel-action-command |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.3 |
| License: | MIT |
| Last Updated: | Apr 8, 2026 |
| Links: | GitHub · Packagist |
Maintainer: frankliniwobi
Laravel Action Command
A simple Laravel package that adds a make:action Artisan command to scaffold Action classes.
Installation
composer require frankliniwobi/laravel-action-command
Laravel's auto-discovery will register the service provider automatically.
Usage
# Creates app/Actions/UserStoreAction.php
php artisan make:action UserStore
# Also works with the full name
php artisan make:action UserStoreAction
Generated file
<?php
namespace App\Actions;
use Illuminate\Support\Facades\DB;
final readonly class UserStoreAction
{
/**
* Execute the action.
*/
public function handle(): void
{
DB::transaction(function (): void {
// action
});
}
}
Customizing the Stub
Publish the stub to your project so you can tailor the generated file to your needs:
php artisan vendor:publish --tag=laravel-action-stubs
This copies laravel-action.stub to your project's stubs/ directory. Edit it freely — the command will use your published version automatically.
License
Laravel Action Command was created by Iwobi Okwudili Frank under the MIT license.
Related Packages
mr.incognito/crudify
This package is for handling the crud for simple crud like for setup etc.
316
1
ollywarren/makepackage
Implements a Artisan command to scaffold out laravel composer packages
2,685
6
whilesmart/eloquent-activities
Flexible activity tracking package for Laravel applications with actor-action-su...
1,115
0
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.0.0 | ^8.3 | MIT |