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/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 [];
    }
}