File: D:/HostingSpaces/SBogers85/equichecker.com/app/Events/SearchDebtors.php
<?php
namespace App\Events;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class SearchDebtors extends Event
{
use SerializesModels;
/**
* @var
*/
public $search_term;
/**
* @var null
*/
public $debtors;
/**
* @var
*/
public $customer;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct($search_term, $debtors = null)
{
//Set the search term
$this->search_term = $search_term;
//Set the found debtors
$this->debtors = $debtors;
//Set the current customer
$this->customer = \Auth::customer()->get();
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
}
}