Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created July 22, 2021 17:15
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 cursosdesarrolloweb/919e470c972c107fd0498b74dee37e9e to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/919e470c972c107fd0498b74dee37e9e to your computer and use it in GitHub Desktop.
<?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