File: D:/HostingSpaces/BVerhoeven/verhoevendak.nl/app/Events/ShowDebtorDetail.php
<?php
namespace App\Events;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class ShowDebtorDetail extends Event
{
use SerializesModels;
/**
* @var
*/
public $debtor;
/**
* @var
*/
public $search_term;
/**
* @var
*/
public $customer;
/**
* Create a new event instance.
*
* @param $debtor
* @return void
*/
public function __construct($debtor)
{
//Set the debtor
$this->debtor = $debtor;
//Get the current customer
$this->customer = \Auth::customer()->get();
//Set the search term from the session
$this->search_term = \Session::get('search.term');
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
}
}