定制 visiarch/laravel-action 二次开发

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

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

visiarch/laravel-action

最新稳定版本:1.0.3

Composer 安装命令:

composer require visiarch/laravel-action

包简介

A simple Laravel package to create actions, using artisan commands

README 文档

README

laravel Action

laravel-action

Latest Stable Version License

"Buy Me A Coffee"

A Simple Package to create actions, using artisan commands in laravel.

This package extends the make: commands to help you easily create action classes in Laravel 9+.

What is Action ?

In Laravel, "Action" usually refers to the method inside the controller that handles the HTTP request. These actions determine how the application responds to specific requests to specific routes.

Install

composer require visiarch/laravel-action

Once it is installed, you can use any of the commands in your terminal.

Usage

Actions are used to group logic related to routes and HTTP requests. They handle application logic related to user interactions over HTTP.

php artisan make:action {name}

Examples

Create an action class

$ php artisan make:action CreateUser

/app/Actions/CreateUser.php

<?php

namespace App\Actions;

/**
 * Class CreateUser
 * @package App\Actions
 */
class CreateUser
{
    /**
     * @return true
     */
    public function execute(){
        // write your code here
        return true;
    }
}

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on any social media? Spread the word!

Thanks! visiarch

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-27