PHPackages                             raid/core-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. raid/core-action

ActiveLibrary

raid/core-action
================

Raid Core Action Package

064PHP

Since Feb 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MohamedKhedr700/core-action)[ Packagist](https://packagist.org/packages/raid/core-action)[ RSS](/packages/raid-core-action/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Core Action Package
===================

[](#core-action-package)

This package is responsible for handling all actions in the system.

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

[](#installation)

```
composer require raid/core-action
```

Configuration
-------------

[](#configuration)

```
php artisan core:publish-action
```

Usage
-----

[](#usage)

```
class UserController extends Controller
{
    /**
     * Invoke the controller method.
     */
    public function __invoke(Request $request, CreateUserAction $action)
    {
        $action->execute($request->only(['name', 'email', 'password']));

        // or using the static call
        CreateUserAction::exec($request->only(['name', 'email', 'password']));
    }
}
```

How to work this
================

[](#how-to-work-this)

Let's start with our action class `CreateUserAction`.

you can use the command to create the action class.

```
php artisan make-action CreateUserAction
```

```
