for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Events\Customers;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use App\Models\Customer;
class NewCustomerCreated
{
use Dispatchable;
use SerializesModels;
Illuminate\Queue\SerializesModels
App\Events\Customers\NewCustomerCreated
$id
$relations
$class
$connection
$keyBy
use InteractsWithSockets;
public $customer;
/**
* Create a new event instance
*/
public function __construct(Customer $customer)
$this->customer = $customer;
}