定制 frankliniwobi/laravel-action-command 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

frankliniwobi/laravel-action-command

Composer 安装命令:

composer require frankliniwobi/laravel-action-command

包简介

A Laravel package to generate Action classes via Artisan

README 文档

README

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.

统计信息

  • 总下载量: 1.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固