PHPackages                             webteractive/make-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. webteractive/make-action

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

webteractive/make-action
========================

Add make:action command to your Laravel project

v1.4.0(2mo ago)11.0k↑392.9%1[3 PRs](https://github.com/webteractive/make-action/pulls)MITPHPPHP ^8.3CI passing

Since Jul 21Pushed 1w ago1 watchersCompare

[ Source](https://github.com/webteractive/make-action)[ Packagist](https://packagist.org/packages/webteractive/make-action)[ Docs](https://github.com/webteractive/make-action)[ GitHub Sponsors]()[ RSS](/packages/webteractive-make-action/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (6)Dependencies (42)Versions (10)Used By (0)

Laravel make:action Command
===========================

[](#laravel-makeaction-command)

This Laravel package provides a `php artisan make:action` command to quickly scaffold "Action" classes. This encourages organized and reusable business logic.

Compatibility
-------------

[](#compatibility)

This package is tested and compatible with:

LaravelPHPFilament13.x8.45.x12.x8.3, 8.45.x11.x8.3, 8.44.x, 5.x10.x8.3, 8.44.xThe package works seamlessly alongside Filament projects without any conflicts.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require webteractive/make-action
```

You can publish the config file with:

```
php artisan vendor:publish --tag="make-action-config"
```

This is the contents of the published config file:

```
// config for Webteractive/MakeAction
return [
    'method_name' => 'handle',
];
```

Usage
-----

[](#usage)

To create a new action class, run the `make:action` Artisan command:

```
php artisan make:action CreateNewUser
```

This will create a new action class at `app/Actions/CreateNewUser.php`:

```
