<?php namespace Bixo\Car\Events; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; use Bixo\Car\Models\Car; class CarAction { use Dispatchable, InteractsWithSockets, SerializesModels; /** * Create a new event instance. */ public function __construct( public string $action, public Car $car, public array $request = [], public string $when = 'after' ) {} }