We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55e6023 commit aabfebeCopy full SHA for aabfebe
src/Illuminate/View/Concerns/ManagesComponents.php
@@ -88,7 +88,7 @@ protected function componentData($name)
88
*/
89
public function slot($name, $content = null)
90
{
91
- if ($content !== null) {
+ if (count(func_get_args()) == 2) {
92
$this->slots[$this->currentComponent()][$name] = $content;
93
} else {
94
if (ob_start()) {
0 commit comments