Skip to content

Commit a21ad16

Browse files
committed
delete broadcast events that are missing models by default
1 parent 8f47a31 commit a21ad16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Illuminate/Broadcasting/BroadcastEvent.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ class BroadcastEvent implements ShouldQueue
5050
*/
5151
public $maxExceptions;
5252

53+
/**
54+
* Delete the job if its models no longer exist.
55+
*
56+
* @var bool
57+
*/
58+
public $deleteWhenMissingModels = true;
59+
5360
/**
5461
* Create a new job handler instance.
5562
*

0 commit comments

Comments
 (0)