Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,17 @@ If a third-party application is creating custom-format JSON messages, just add a
implement a handler class as follows:

```php
use Illuminate\Contracts\Queue\Job as LaravelJob;
use Illuminate\Contracts\Queue\Job;

class HandlerJob extends Job
class HandlerJob
{
protected $data;

/**
* @param LaravelJob $job
* @param array $data
*/
public function handle(LaravelJob $job, array $data)
public function handle(Job $job, array $data)
{
// This is incoming JSON payload, already decoded to an array
var_dump($data);
Expand Down