Created
May 13, 2022 17:01
-
-
Save dgafka/a8847d441895a5e7097bdb5890107342 to your computer and use it in GitHub Desktop.
asynchronous-messaging-08.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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