diff --git a/src/Illuminate/View/Concerns/ManagesComponents.php b/src/Illuminate/View/Concerns/ManagesComponents.php index eea8c3c6aaa5..d523f7e8a26a 100644 --- a/src/Illuminate/View/Concerns/ManagesComponents.php +++ b/src/Illuminate/View/Concerns/ManagesComponents.php @@ -88,7 +88,7 @@ protected function componentData($name) */ public function slot($name, $content = null) { - if ($content !== null) { + if (count(func_get_args()) == 2) { $this->slots[$this->currentComponent()][$name] = $content; } else { if (ob_start()) {