We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
compileGuest
compileEndguest
1 parent 6631eb1 commit f9a43a7Copy full SHA for f9a43a7
1 file changed
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -723,6 +723,24 @@ protected function compileEndauth($expression)
723
return '<?php endif; ?>';
724
}
725
726
+ /**
727
+ * @param string $expression
728
+ * @return string
729
+ */
730
+ protected function compileGuest($expression)
731
+ {
732
+ return "<?php if (\Auth::guest()): ?>";
733
+ }
734
+
735
736
737
738
739
+ protected function compileEndguest($expression)
740
741
+ return '<?php endif; ?>';
742
743
744
/**
745
* Register a custom Blade compiler.
746
*
0 commit comments