https://github.com/georgeboot/artisan-queue-laravel
Queue artisan commands for later execution
https://github.com/georgeboot/artisan-queue-laravel
Last synced: 11 months ago
JSON representation
Queue artisan commands for later execution
- Host: GitHub
- URL: https://github.com/georgeboot/artisan-queue-laravel
- Owner: georgeboot
- License: mit
- Created: 2015-04-10T14:08:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-22T14:19:36.000Z (about 11 years ago)
- Last Synced: 2025-03-28T09:21:35.160Z (about 1 year ago)
- Language: PHP
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Queue Artisan commands in Laravel
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',