-
-
Save cursosdesarrolloweb/919e470c972c107fd0498b74dee37e9e to your computer and use it in GitHub Desktop.
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 | |
namespace App\Events; | |
use App\Models\Order; | |
use Illuminate\Broadcasting\InteractsWithSockets; | |
use Illuminate\Foundation\Events\Dispatchable; | |
use Illuminate\Queue\SerializesModels; | |
class NewOrder | |
{ | |
use Dispatchable, InteractsWithSockets, SerializesModels; | |
/** | |
* The order instance. | |
* | |
* @var Order | |
*/ | |
public Order $order; | |
/** | |
* Create a new event instance. | |
* | |
* @param Order $order | |
* @return void | |
*/ | |
public function __construct(Order $order) | |
{ | |
$this->order = $order; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment