PHPackages                             therealedatta/laravel-actions - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. therealedatta/laravel-actions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

therealedatta/laravel-actions
=============================

Actions: controller + auth + validation in one class

v1.3.1(3y ago)4291[2 PRs](https://github.com/therealedatta/laravel-actions/pulls)MITPHPPHP &gt;=8.0

Since Oct 6Pushed 2y ago2 watchersCompare

[ Source](https://github.com/therealedatta/laravel-actions)[ Packagist](https://packagist.org/packages/therealedatta/laravel-actions)[ Docs](https://github.com/therealedatta/laravel-actions)[ RSS](/packages/therealedatta-laravel-actions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (9)Used By (0)

Actions: controller + auth + validation in one class
====================================================

[](#actions-controller--auth--validation-in-one-class)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b876ea593be7d35319819f2849a6914ada721c02a5fedc861147c1876fbd4308/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468657265616c6564617474612f6c61726176656c2d616374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/therealedatta/laravel-actions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b0951ffd64c5f929692cb0c1944cde8de0ef671bfacfb389910fc073b6c6fb0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7468657265616c6564617474612f6c61726176656c2d616374696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/therealedatta/laravel-actions/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ec9f91849de87b493ebb5f9924a2f41cf43888a338a84ab2a9818f5af5ef4748/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7468657265616c6564617474612f6c61726176656c2d616374696f6e732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/therealedatta/laravel-actions/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5e87248c40e391f79c11baa3aa4399abd962a940cd1551c19f778a340e2c87ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468657265616c6564617474612f6c61726176656c2d616374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/therealedatta/laravel-actions)

This package provides only one class: an Action class that extends the FormRequest class we all know and adapt it slightly so it works as an invokable Controller.

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

[](#installation)

```
composer require therealedatta/laravel-actions
php artisan actions:install
```

You can publish the action stubs for the make:action commad:

```
php artisan actions:stubs
```

Usage
-----

[](#usage)

```
php artisan make:action User\EditUser
```

This command will create the `User\Actions\EditUser` class. The actions subfolder can be modified/removed in in the `config/actions.php` file. The stub used to generate the class can be modified publishing the stub (check installation section).

`handle` should execute the action itself and `__invoke` (or any other method you want to call) should call handle and return the controller response.

This package executes authorization automatically. By default is true, you can change this in the `config/actions.php` file.

Important: This package does not call validate automatically. You should call `validate` in `handle` method.

```
public function handle(): User
{
    $validated_data = $this->validate();

    return tap($this->user)->update($validated_data);
}
```

Testing
-------

[](#testing)

We use pint for styling, larastan for static analysis and pest for testing:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- Authors:

    - [edatta](https://github.com/therealedatta)
    - [All Contributors](../../contributors)
- Inspiration:

    - [Loris Leiva actions package](https://github.com/lorisleiva/laravel-actions) / [Loris Leiva request/controller article](https://lorisleiva.com/if-formrequests-and-invokable-controllers-had-a-baby/)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Recently: every ~45 days

Total

6

Last Release

1132d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.3PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/512e4db1d263a5d63a20dec238db25ac78abcc2f0b9c050c02df62be9ea96a4c?d=identicon)[therealedatta](/maintainers/therealedatta)

---

Top Contributors

[![davidjr82](https://avatars.githubusercontent.com/u/4275886?v=4)](https://github.com/davidjr82 "davidjr82 (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

actionslaravellaravellaravel-actionstherealedatta

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/therealedatta-laravel-actions/health.svg)

```
[![Health](https://phpackages.com/badges/therealedatta-laravel-actions/health.svg)](https://phpackages.com/packages/therealedatta-laravel-actions)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
