承接 ahmedd-ibrahim/action 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ahmedd-ibrahim/action

最新稳定版本:v1.0.3

Composer 安装命令:

composer require ahmedd-ibrahim/action

包简介

Laravel Action

README 文档

README

The Laravel Action package provides a convenient way to generate action classes in your Laravel application. Action classes encapsulate a specific unit of work and help to keep your code organized and maintainable.

Installation

You can install the package via Composer by running the following command:

composer require ahmedd-ibrahim/action

Usage

To generate a new action class, you can use the provided make:action Artisan command. Simply run the following command and provide the desired name for your action class:

php artisan action:make {name}

Replace {name} with the name of your action. The command will generate two files: an interface and a class representing your action.

The generated files will be placed in the configured directories. By default, the interface will be created in the Actions\Contracts directory, and the class will be created in the Actions directory. However, you can customize these paths in your configuration file.

Configuration

The package provides a configuration file where you can customize various settings. To publish the configuration file, run the following command:

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

This will copy the configuration file to the config directory of your Laravel application. You can then modify the configuration values to suit your needs.

Customizing Directories

If you want to change the default directories where the generated files are placed, you can update the configuration file. Open the config/action.php file and modify the contracts_path and actions_path values.

The contracts_path determines the directory for the generated interface files, and the actions_path determines the directory for the generated action class files. You can use forward slashes or backslashes to define the paths.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固