Skip to content

Commit 96593a0

Browse files
authored
Update README.md
1 parent 599c149 commit 96593a0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ php artisan queue:work {connection-name} --queue={queue-name}
137137

138138
```
139139
CMQ_PLAIN_ENABLE=true
140-
CMQ_PLAIN_JOB=App\Jobs\CMQPlainJob@handle
140+
CMQ_PLAIN_JOB=App\Jobs\CMQPlainJobHandler@handle
141141
```
142142

143143
```php
@@ -175,7 +175,18 @@ class CMQPlainJob implements ShouldQueue
175175
{
176176
return $this->payload;
177177
}
178-
178+
}
179+
```
180+
181+
```php
182+
<?php
183+
184+
namespace App\Jobs;
185+
186+
use Illuminate\Queue\Jobs\Job;
187+
188+
class CMQPlainJobHandler
189+
{
179190
/**
180191
* Execute the job.
181192
*

0 commit comments

Comments
 (0)