承接 lozemc/laravel-actions 相关项目开发

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

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

lozemc/laravel-actions

最新稳定版本:11.0

Composer 安装命令:

composer require lozemc/laravel-actions

包简介

Simple command to create actions in Laravel

README 文档

README

Installation

To get started with Laravel Action Command, simply require the package via Composer:

composer require lozemc/laravel-actions



Installation for Laravel 10.x

Next, add the following line to the $commands array in your /app/Console/Kernel.php file:

protected $commands = [
    
    // ...

    \App\Console\Commands\ActionMakeCommand::class,
];

If the protected $commands array does not exist, you will need to add it.


Installation for Laravel 11.x

Then add the following line to the returned array in /bootstrap/providers.php:

return [

    // ...

    \Lozemc\Actions\Providers\MakeActionProvider::class,
];

Usage

Once installed and configured, you can use the artisan command to create a new action:

php artisan make:action UpdatePostAction

This will generate a new action class named UpdatePostAction in the App\Actions namespace. You can then implement your business logic within this action class.

Other

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-25