robinwieske/laravel-action-command

This package provides a simple `make:action` command to generate invokable action classes

v0.0.2 2025-02-20 19:54 UTC

This package is auto-updated.

Last update: 2025-02-20 19:57:12 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package allows you to easily create Action classes in your laravel project. You can either just use the php artisan make:model command and pass the --actions flag to create Create{Model}Action, Update{Model}Action and Delete{Model}Action actions or you can directly use php artisan make:action.

Installation

You can install the package via composer:

composer require robinwieske/laravel-action-command

Usage

Create an action class directly:

php artisan action:make User/CreateUserAction

Or pass the --actions flag to your php artisan make:model command:

php artisan make:model Post -mcf --actions

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.