We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd6988 commit 538d068Copy full SHA for 538d068
README.md
@@ -227,18 +227,17 @@ use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Jobs\RabbitMQJob as BaseJob;
227
228
class RabbitMQJob extends BaseJob
229
{
230
-
231
/**
232
* Get the decoded body of the job.
233
*
234
* @return array
235
*/
236
public function payload()
237
238
- $decoded = json_decode($this->getRawBody(), true);
239
- $decoded['job'] = $decoded['job'] ?? 'WhatheverFullyQualifiedClassNameToExecute@handle';
240
241
- return $decoded;
+ return [
+ 'job' => 'WhatheverFullyQualifiedClassNameToExecute@handle',
+ 'data' => json_decode($this->getRawBody(), true)
+ ];
242
}
243
244
```
0 commit comments