File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ protected function setupDefaultDirectives()
102102 });
103103
104104 $ this ->directive ('method ' , function ($ expression ) {
105- return "<?php echo '<input type= \"hidden \" name= \"_method \" value= \"' . $ expression . ' \" />'; ?> " ;
105+ return "<?php echo '<input type= \"hidden \" name= \"_METHOD \" value= \"' . $ expression . ' \" />'; ?> " ;
106106 });
107107
108108 $ this ->directive ('json ' , function ($ expression ) {
@@ -145,6 +145,14 @@ protected function setupDefaultDirectives()
145145 return "<?php if (strtolower(_env('APP_ENV')) === strtolower( $ expression)) : ?> " ;
146146 });
147147
148+ $ this ->compiler ()->directive ('endenv ' , function ($ expression ) {
149+ return "<?php endif; ?> " ;
150+ });
151+
152+ $ this ->directive ('getenv ' , function ($ expression ) {
153+ return "<?php echo _env( $ expression); ?> " ;
154+ });
155+
148156 $ this ->directive ('session ' , function ($ expression ) {
149157 return implode ('' , [
150158 "<?php if (session()->has( $ expression)) : ?> " ,
You can’t perform that action at this time.
0 commit comments