Skip to content

Commit

Permalink
Fixes wrong event handler generator artisan command in queue section
Browse files Browse the repository at this point in the history
  • Loading branch information
DougSisk committed Jan 29, 2015
1 parent 7d4d711 commit d5281c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Sometimes, you may wish to stop the propagation of an event to other listeners.

Need to [queue](/docs/master/queues) an event handler? It couldn't be any easier. When generating the handler, simply use the `--queued` flag:

php artisan handler:make SendPurchaseConfirmation --event=PodcastWasPurchased --queued
php artisan handler:event SendPurchaseConfirmation --event=PodcastWasPurchased --queued

This will generate a handler class that implements the `Illuminate\Contracts\Queue\ShouldBeQueued` interface. That's it! Now when this handler is called for an event, it will be queued automatically by the event dispatcher.

Expand Down

0 comments on commit d5281c4

Please sign in to comment.