2018-07-21 05:01:30 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
use App\Models\Actionlog;
|
|
|
|
use App\Models\Consumable;
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Broadcasting\Channel;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class ConsumableCheckedOut
|
|
|
|
{
|
|
|
|
use Dispatchable, SerializesModels;
|
|
|
|
|
|
|
|
public $consumable;
|
|
|
|
public $checkedOutTo;
|
|
|
|
public $logEntry;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2018-07-27 15:05:45 -07:00
|
|
|
public function __construct(Consumable $consumable, $checkedOutTo, User $checkedOutBy, $note)
|
2018-07-21 05:01:30 -07:00
|
|
|
{
|
|
|
|
$this->consumable = $consumable;
|
|
|
|
$this->checkedOutTo = $checkedOutTo;
|
2018-07-27 15:05:45 -07:00
|
|
|
$this->checkedOutBy = $checkedOutBy;
|
|
|
|
$this->note = $note;
|
2018-07-21 05:01:30 -07:00
|
|
|
}
|
|
|
|
}
|