<?php
namespace App\Events;
use App\Models\Contract;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class NewContractEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $contract;
public function __construct(Contract $contract)
{
$this->contract = $contract;
}
}