Skip to content

Instantly share code, notes, and snippets.

@sirawitpra
Created July 1, 2017 12:39
Show Gist options
  • Save sirawitpra/018e0c237f6702ae82faa06c244dcbf4 to your computer and use it in GitHub Desktop.
Save sirawitpra/018e0c237f6702ae82faa06c244dcbf4 to your computer and use it in GitHub Desktop.
<?php
namespace App\Events;
use App\Order;
use Illuminate\Queue\SerializesModels;
class OrderCreated
{
use SerializesModels;
public $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