class EmbeddingAvailable implements ShouldBroadcastNow

Traits

Dispatchable
InteractsWithSockets
SerializesModels

Properties

User $user

The user that requested the embedding.

string $filename

The embedding filename on the storage disk.

array|null $bbox

The bbox of the image (x, y, width, height) or null for full image.

string|null $queue

The name of the queue the job should be sent to.

protected bool $deleteWhenMissingModels

Ignore this job if the image or user does not exist any more.

Methods

void
__construct(string $filename, User $user, array|null $bbox = null)

Create a new event instance.

Channel|array
broadcastOn()

Get the channels the event should broadcast on.

array
broadcastWith()

Get the data to broadcast.

Details

at line 61
void __construct(string $filename, User $user, array|null $bbox = null)

Create a new event instance.

Parameters

string $filename
User $user
array|null $bbox

Optional bbox (x, y, width, height)

Return Value

void

at line 73
Channel|array broadcastOn()

Get the channels the event should broadcast on.

Return Value

Channel|array

at line 83
array broadcastWith()

Get the data to broadcast.

Return Value

array