diff --git a/src/Illuminate/Broadcasting/BroadcastEvent.php b/src/Illuminate/Broadcasting/BroadcastEvent.php index fef5423d7d18..3ff22b2ddeec 100644 --- a/src/Illuminate/Broadcasting/BroadcastEvent.php +++ b/src/Illuminate/Broadcasting/BroadcastEvent.php @@ -42,6 +42,13 @@ class BroadcastEvent implements ShouldQueue */ public $backoff; + /** + * The maximum number of unhandled exceptions to allow before failing. + * + * @var int + */ + public $maxExceptions; + /** * Create a new job handler instance. * @@ -55,6 +62,7 @@ public function __construct($event) $this->timeout = property_exists($event, 'timeout') ? $event->timeout : null; $this->backoff = property_exists($event, 'backoff') ? $event->backoff : null; $this->afterCommit = property_exists($event, 'afterCommit') ? $event->afterCommit : null; + $this->maxExceptions = property_exists($event, 'maxExceptions') ? $event->maxExceptions : null; } /**