LaravelPackages.net
Acme Inc.
Toggle sidebar
visiarch/laravel-action

A simple Laravel package to create actions, using artisan commands

24
0
1.0.3
About visiarch/laravel-action

visiarch/laravel-action is a Laravel package for a simple laravel package to create actions, using artisan commands. It currently has 0 GitHub stars and 24 downloads on Packagist (latest version 1.0.3). Install it with composer require visiarch/laravel-action. Discover more Laravel packages by visiarch or browse all Laravel packages to compare alternatives.

Last updated

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.

Star History Chart