File tree Expand file tree Collapse file tree
src/Illuminate/View/Compilers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -691,7 +691,7 @@ protected function compileEndenv($expression)
691691 * @param string $expression
692692 * @return string
693693 */
694- protected function compileProduction (string $ expression )
694+ protected function compileProduction ($ expression )
695695 {
696696 return "<?php if (app()->environment('production')): ?> " ;
697697 }
@@ -705,6 +705,24 @@ protected function compileEndproduction($expression)
705705 return '<?php endif; ?> ' ;
706706 }
707707
708+ /**
709+ * @param string $expression
710+ * @return string
711+ */
712+ protected function compileAuth ($ expression )
713+ {
714+ return "<?php if (\Auth::check()): ?> " ;
715+ }
716+
717+ /**
718+ * @param string $expression
719+ * @return string
720+ */
721+ protected function compileEndauth ($ expression )
722+ {
723+ return '<?php endif; ?> ' ;
724+ }
725+
708726 /**
709727 * Register a custom Blade compiler.
710728 *
You can’t perform that action at this time.
0 commit comments