定制 webteractive/make-action 二次开发

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

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

webteractive/make-action

Composer 安装命令:

composer require webteractive/make-action

包简介

Add make:action command to your Laravel project

README 文档

README

This Laravel package provides a php artisan make:action command to quickly scaffold "Action" classes. This encourages organized and reusable business logic.

Compatibility

This package is tested and compatible with:

Laravel PHP Filament
13.x 8.4 5.x
12.x 8.3, 8.4 5.x
11.x 8.3, 8.4 4.x, 5.x
10.x 8.3, 8.4 4.x

The package works seamlessly alongside Filament projects without any conflicts.

Installation

You can install the package via composer:

composer require webteractive/make-action

You can publish the config file with:

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

This is the contents of the published config file:

// config for Webteractive/MakeAction
return [
    'method_name' => 'handle',
];

Usage

To create a new action class, run the make:action Artisan command:

php artisan make:action CreateNewUser

This will create a new action class at app/Actions/CreateNewUser.php:

<?php

namespace App\Actions;

class CreateNewUser
{
    public function handle()
    {
        // TODO: Implement the action logic.
    }
}

You can customize the default method name (handle) by changing the method_name value in the config/make-action.php file:

// config for Webteractive/MakeAction
return [
    'method_name' => 'execute',
];

Laravel Boost Support

This package includes AI guidelines for Laravel Boost, providing AI agents with context on how to properly use the make:action command.

Enabling Boost Guidelines

To include this package's guidelines in your AI context:

  1. Add to your boost.json:

    {
        "guidelines": [
            "webteractive/make-action"
        ]
    }
  2. Update Boost:

    php artisan boost:update

Once enabled, AI coding assistants will:

  • Generate correct make:action commands
  • Create action classes following Laravel conventions
  • Provide appropriate examples when working with the action pattern

The guidelines are automatically discovered from resources/boost/guidelines/core.blade.php when you opt-in.

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固