fidum/laravel-schedule-queue-command

Provides the ability to queue commands from the Laravel scheduler.

Maintainers

👁 dmason30

Package info

github.com/fidum/laravel-schedule-queue-command

pkg:composer/fidum/laravel-schedule-queue-command

Fund package maintenance!

dmason30

Statistics

Installs: 17 522

Dependents: 0

Suggesters: 0

Stars: 11

Open Issues: 4

2.0.0 2025-02-24 22:14 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ada4e53b8251c2f4affff32900de186e1b20dea6

  • Daniel Mason <fidum.dev.woop@gmail.com>

laravelfidumlaravel-schedule-queue-command


README

👁 Latest Version on Packagist
👁 GitHub Workflow Status (with branch)
👁 Twitter Follow

Adds a queueCommand function to the scheduler that executes the equivalent of Artisan::queue(...) on the given schedule. It also provides the ability to optionally customise the queue and connection if needed.

Installation

You can install the package via composer:

composer require fidum/laravel-schedule-queue-command

Usage

In your laravel projects app/Console/Kernel.php:

$schedule->queueCommand(FooCommand::class)->everyMinute();
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo']);
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo'], 'queue');
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo'], 'queue', 'connection');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.