aveley/artisan-queue

This package is abandoned and no longer maintained. No replacement package was suggested.

Queue artisan commands for later execution

1.0 2014-04-25 22:16 UTC

This package is not auto-updated.

Last update: 2017-11-29 10:11:07 UTC


README

Adds a method to place artisan commands in the queue.

Usage

Queue::artisan(command, optional array arguments)

For example

// equivalent to php artisan migrate:refresh
Queue::artisan('migrate:refresh') // for whatever reason you want to queue this command

// equivalent for php artisan your-own-command:task parameter=value --optional=optionalValue
Queue::artisan('your-own-command:task', array('parameter' => 'value', '--optional' => 'optionalValue'))

Installation

Add to composer

"aveley/artisan-queue": "dev-master"

Update your composer

composer update

In app/config/app.php -> aliases change this line

'Queue'           => 'Illuminate\Support\Facades\Queue',

to

'Queue'           => 'Aveley\Artisanqueue\Queue',