- public function has($key) {
- return (Env::has($this->envprefix . $key) && strlen($this->s($key, '')) > 0);
+ public function b($key, $def = false)
+ {
+ return Env::b($this->envprefix . $key, $def);
+ }
+
+ public function has($key)
+ {
+ return Env::has($this->envprefix . $key);
+ }
+
+ public function blank($key, $strict = false)
+ {
+ return Env::blank($key, $strict);
+ }
+
+ public function hasAlnum($key)
+ {
+ $str = $this->s($key);
+ return preg_match('/[a-z0-9]/i', $str);
+ }
+
+ public function hasAlpha($key)
+ {
+ $str = $this->s($key);
+ return preg_match('/[a-z]/i', $str);