HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/BVerhoeven/verhoevendak.nl/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 [];
    }
}