A simple Laravel package to create actions, using artisan commands
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

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+.
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.
composer require visiarch/laravel-action
Once it is installed, you can use any of the commands in your terminal.
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}
$ 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;
}
}
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
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
The MIT License (MIT). Please see License File for more information.