Skip to content

Commit 8843b53

Browse files
committed
Update TraitConfiguration.php
1 parent fbc9e7d commit 8843b53

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/TraitConfiguration.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,17 @@ protected function getEnv() : string
891891
return $config->environment;
892892
}
893893

894+
/**
895+
* Check static environment.
896+
*
897+
* @access protected
898+
* @return bool
899+
*/
900+
protected function isEnv(string $env = 'prod') : bool
901+
{
902+
return $this->getEnv() == $env;
903+
}
904+
894905
/**
895906
* Check admin area.
896907
*

0 commit comments

Comments
 (0)