Skip to content

Commit 8eb0682

Browse files
committed
wip
1 parent 28da4f0 commit 8eb0682

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

README.md

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Provides the ability to queue commands from the Laravel scheduler.
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/fidum/laravel-schedule-queue-command.svg?style=for-the-badge)](https://packagist.org/packages/fidum/laravel-schedule-queue-command)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/fidum/laravel-schedule-queue-command./Tests?label=tests&style=for-the-badge)](https://github.com/fidum/laravel-schedule-queue-command/actions?query=workflow%3Arun-tests+branch%3Amaster)
5-
[![Codecov](https://img.shields.io/codecov/c/github/fidum/laravel-schedule-queue-command?logo=codecov&logoColor=white&style=for-the-badge)](https://codecov.io/gh/fidum/laravel-schedule-queue-command)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/fidum/laravel-schedule-queue-command/run-tests?label=tests&style=for-the-badge)](https://github.com/fidum/laravel-schedule-queue-command/actions?query=workflow%3Arun-tests+branch%3Amain)
65
[![Twitter Follow](https://img.shields.io/twitter/follow/danmasonmp?label=Follow&logo=twitter&style=for-the-badge)](https://twitter.com/danmasonmp)
76

87
Provides the ability to queue commands from the Laravel scheduler.
@@ -15,37 +14,13 @@ You can install the package via composer:
1514
composer require fidum/laravel-schedule-queue-command
1615
```
1716

18-
You can publish and run the migrations with:
19-
20-
```bash
21-
php artisan vendor:publish --tag="laravel-schedule-queue-command-migrations"
22-
php artisan migrate
23-
```
24-
25-
You can publish the config file with:
26-
27-
```bash
28-
php artisan vendor:publish --tag="laravel-schedule-queue-command-config"
29-
```
30-
31-
This is the contents of the published config file:
32-
33-
```php
34-
return [
35-
];
36-
```
37-
38-
Optionally, you can publish the views using
39-
40-
```bash
41-
php artisan vendor:publish --tag="laravel-schedule-queue-command-views"
42-
```
43-
4417
## Usage
4518

4619
```php
47-
$laravelScheduleQueueCommand = new Fidum\LaravelScheduleQueueCommand();
48-
echo $laravelScheduleQueueCommand->echoPhrase('Hello, Fidum!');
20+
$schedule->queueCommand(FooCommand::class)->everyMinute();
21+
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo']);
22+
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo'], 'queue');
23+
$schedule->queueCommand(FooCommand::class, ['some-argument' => 'foo'], 'queue', 'connection');
4924
```
5025

5126
## Testing

0 commit comments

Comments
 (0)