diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php b/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
index b26494e822b..459af236c4c 100644
--- a/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
+++ b/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
@@ -406,4 +406,15 @@ protected function compileEndPushIf()
{
return 'stopPush(); endif; ?>';
}
+
+ /**
+ * Compile a hidden block into valid PHP.
+ *
+ * @param string $condition
+ * @return string
+ */
+ protected function compileHidden($condition)
+ {
+ return "";
+ }
}
diff --git a/tests/View/Blade/BladeCheckedStatementsTest.php b/tests/View/Blade/BladeCheckedStatementsTest.php
index fd76b3656db..5de18e1f47e 100644
--- a/tests/View/Blade/BladeCheckedStatementsTest.php
+++ b/tests/View/Blade/BladeCheckedStatementsTest.php
@@ -43,4 +43,12 @@ public function testReadonlyStatementsAreCompiled()
$this->assertEquals($expected, $this->compiler->compileString($string));
}
+
+ public function testHiddenStatementsAreCompiled()
+ {
+ $string = '';
+ $expected = "/>";
+
+ $this->assertEquals($expected, $this->compiler->compileString($string));
+ }
}