From aabfebe71ded6ccc2fd72708fa14843df8c24cab Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Wed, 8 Mar 2017 04:56:07 +0200 Subject: [PATCH] fix an issue with slots when content passed is equal to null (#18246) --- src/Illuminate/View/Concerns/ManagesComponents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {