PHPackages                             therour/laravel-actionable - 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. [Framework](/categories/framework)
4. /
5. therour/laravel-actionable

ActiveLibrary[Framework](/categories/framework)

therour/laravel-actionable
==========================

Single Class Action Handler for Laravel Framework

1.2.1(7y ago)1180MITPHPPHP ^7.1.3

Since Mar 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/therour/laravel-actionable)[ Packagist](https://packagist.org/packages/therour/laravel-actionable)[ RSS](/packages/therour-laravel-actionable/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

Actionable - Laravel Single Action Class Routing
================================================

[](#actionable---laravel-single-action-class-routing)

Laravel Actionable is used to create single action class and made routing simple to them.

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

[](#installation)

### Composer

[](#composer)

Install by composer command

```
composer require therour/laravel-actionable

```

### Service Provider

[](#service-provider)

**Version &gt;= Laravel 5.5** attached automatically, no need action **Version &lt; Laravel 5.5**In your `config/app.php` add `Therour\Actionable\Providers\ServiceProvider::class` to the packages of provider array

```
'providers' => [
    ...
    /*
    * Package Service Providers...
    */
    ...
    Therour\Actionable\Providers\ServiceProvider::class,
    ...
],
```

### Configuration

[](#configuration)

#### Publish

[](#publish)

```
php artisan vendor:publish --provider "Therour\Actionable\Providers\ServiceProvider::class"

```

#### Edit (optional)

[](#edit-optional)

1. If you create a custom controller to handle Actionable class, you may define the controller class in key `controller` at config file.
2. If you want to load action routes, define the php file or directory path to your routes file, because `web.php` and `api.php` has default controller namespace, so we cannot load our default action controller that has different namespace

Usage
-----

[](#usage)

### Routes

[](#routes)

create a routes file, by default `routes/actions.php` and add the action route. or you may edit `route_path` in your `config/actionable.php` configuration

```
