maslennikov-yv/action-generator

There is no license information available for the latest version (v0.3.2) of this package.

Maintainers

Package info

github.com/maslennikov-yv/action-generator

pkg:composer/maslennikov-yv/action-generator

Statistics

Installs: 743

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 0

v0.3.2 2026-03-16 10:59 UTC

This package is not auto-updated.

Last update: 2026-03-30 11:11:51 UTC


README

Actions - lightweight business logic layer

Installation

You can install the package via composer:

composer require maslennikov-yv/action-generator --dev

Publish

You can publish action config:

php artisan vendor:publish --tag=action-config 

Also, you can publish action stubs:

php artisan action:stub:publish 

You can also publish the Cursor skill that helps agents work with this package (generate single Actions or full CRUD stacks with DTOs, contracts and tests):

php artisan vendor:publish --tag=action-skill

This will copy the skill into your application at:

  • .cursor/skills/laravel-actions-generator/

After publishing, Cursor agents working in your Laravel app will automatically use this skill when you ask them to create or modify Actions/CRUD/DTO/tests with this package.

Usage

When you need to create an action, just run the following command:

php artisan make:action VerbModel --test --force

or, to make CreateModel, IndexModel, ShowModel, UpdateModel, DestroyModel actions:

php artisan make:action {*}Model --test --force

For example:

php artisan make:action GetArticle --test

or:

php artisan make:action {*}Article --test

If you plan to use the --test option, you must install pest: https://pestphp.com/docs/installation