Skip to content

Commit f9a43a7

Browse files
committed
implements compileGuest and compileEndguest
1 parent 6631eb1 commit f9a43a7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/Illuminate/View/Compilers/BladeCompiler.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,24 @@ protected function compileEndauth($expression)
723723
return '<?php endif; ?>';
724724
}
725725

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+
* @param string $expression
737+
* @return string
738+
*/
739+
protected function compileEndguest($expression)
740+
{
741+
return '<?php endif; ?>';
742+
}
743+
726744
/**
727745
* Register a custom Blade compiler.
728746
*

0 commit comments

Comments
 (0)