2016-01-06 20:52:09 +01:00
|
|
|
<?php namespace App\Events;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
use App\Models\Expense;
|
2016-01-06 20:52:09 +01:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Class ExpenseWasCreated
|
|
|
|
*/
|
2016-01-08 19:01:00 +01:00
|
|
|
class ExpenseWasCreated extends Event
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
use SerializesModels;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var Expense
|
|
|
|
*/
|
2016-01-06 20:52:09 +01:00
|
|
|
public $expense;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @param Expense $expense
|
|
|
|
*/
|
|
|
|
public function __construct(Expense $expense)
|
2016-01-06 20:52:09 +01:00
|
|
|
{
|
|
|
|
$this->expense = $expense;
|
|
|
|
}
|
|
|
|
}
|