PHPackages                             visiarch/laravel-action - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. visiarch/laravel-action

ActiveLibrary[CLI &amp; Console](/categories/cli)

visiarch/laravel-action
=======================

A simple Laravel package to create actions, using artisan commands

1.0.3(2y ago)0241MITPHP

Since Jun 27Pushed 2y agoCompare

[ Source](https://github.com/visiarch/laravel-action)[ Packagist](https://packagist.org/packages/visiarch/laravel-action)[ Docs](https://github.com/visiarch/laravel-action)[ RSS](/packages/visiarch-laravel-action/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (1)

[![laravel Action](https://github.com/visiarch/laravel-action/raw/main/images/laravel-action-banner.png)](https://github.com/visiarch/laravel-action/blob/main/images/laravel-action-banner.png)

laravel-action
==============

[](#laravel-action)

[![Latest Stable Version](https://camo.githubusercontent.com/ef7efdbe2d1f0a8ae71d1257aa73b1e807187645793ddb6c862957b64e504106/687474703a2f2f706f7365722e707567782e6f72672f76697369617263682f6c61726176656c2d616374696f6e2f76)](https://packagist.org/packages/visiarch/laravel-action)[![License](https://camo.githubusercontent.com/3544a755068fa50a1837d80b83883e9d4af438feca5ae51d5fc1186fd6714574/687474703a2f2f706f7365722e707567782e6f72672f76697369617263682f6c61726176656c2d616374696f6e2f6c6963656e7365)](https://packagist.org/packages/visiarch/laravel-action)

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/bagussuandana)

> 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 ?
================

[](#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
=======

[](#install)

```
composer require visiarch/laravel-action
```

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

Usage
=====

[](#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
========

[](#examples)

Create an action class
----------------------

[](#create-an-action-class)

```
$ php artisan make:action CreateUser
```

`/app/Actions/CreateUser.php`

```
