Skip to content

Instantly share code, notes, and snippets.

@dgafka
Created May 13, 2022 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgafka/a8847d441895a5e7097bdb5890107342 to your computer and use it in GitHub Desktop.
Save dgafka/a8847d441895a5e7097bdb5890107342 to your computer and use it in GitHub Desktop.
asynchronous-messaging-08.php
<?php
class PlaceOrder implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable;
protected Order $order;
public function __construct(Order $order)
{
$this->order = $order;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
// handle order
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment