2017 © Pedro Peláez
 

library laravel-tactician

Tactician for laravel 5+

image

jildertmiedema/laravel-tactician

Tactician for laravel 5+

  • Friday, May 18, 2018
  • by jildertmiedema
  • Repository
  • 0 Watchers
  • 8 Stars
  • 1,677 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

laravel-tactician

Tactician command bus for laravel 5+, (*1)

Build Status Software License Packagist Version Total Downloads, (*2)

Install

composer require jildertmiedema/laravel-tactician

Add JildertMiedema\LaravelTactician\TacticianServiceProvider to your app.php, (*3)

Run this in the command line:, (*4)

php artisan vendor:publish

Edit config/tactician.php and set your namespaces, (*5)

Usage

In your controllers or console commands you can use the trait JildertMiedema\LaravelTactician\DispatchesCommands., (*6)


use YourApp\Commmands\DoSomethingCommand; use Illuminate\Routing\Controller as BaseController; use JildertMiedema\LaravelTactician\DispatchesCommands; class Controller extends BaseController { use DispatchesCommands; public function store(Request $request) { $command = new DoSomethingCommand($request->get('id'), $request->get('value')); $this->dispatch($command); return redirect('/'); } }

Extending

Middleware

In your own ServiceProvider:, (*7)

$this->app['tactician.middleware']->prepend('your.middleware');

$this->app->bind('your.middleware', function () {
    return new MiddleWare
});

Locator

The default locator is set in the container by tactician.handler.locator, of course you can change it., (*8)

In your own ServiceProvider:, (*9)

$this->bind('tactician.handler.locator', function () {
    return new YourLocator();
});

The Versions

18/05 2018

dev-master

9999999-dev

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

18/05 2018

v0.3.0

0.3.0.0

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

10/02 2016

v0.2.2

0.2.2.0

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

10/02 2016

v0.2.1

0.2.1.0

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

09/02 2016

v0.2.0

0.2.0.0

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

09/02 2016

1.x-dev

1.9999999.9999999.9999999-dev

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

18/06 2015

v0.1.1

0.1.1.0

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician

17/06 2015

v0.1.0

0.1.0.0

Tactician for laravel 5+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jildert Miedema

laravel commandbus tactician