diff --git a/src/Illuminate/Bus/Batch.php b/src/Illuminate/Bus/Batch.php index db8779d3acaa..d1464e442579 100644 --- a/src/Illuminate/Bus/Batch.php +++ b/src/Illuminate/Bus/Batch.php @@ -467,4 +467,15 @@ public function jsonSerialize() { return $this->toArray(); } + + /** + * Dynamically access the batch's "options" via properties. + * + * @param string $key + * @return mixed + */ + public function __get($key) + { + return $this->options[$key] ?? null; + } }