public function isEnabled()
    {
        if ($this->enabled === null) {
            $environments  = config('songshenzong-log.env', ['dev', 'local', 'production']);
            $this->enabled = in_array(env('APP_ENV'), $environments, true);
        }

        return $this->enabled;
    }
public function isEnabled()
    {
        if ($this->enabled === null) {
            $environments  = config('songshenzong-log.env', ['dev', 'local', 'production']);
            $this->enabled = in_array(env('APP_ENV'), $environments, true);
        }

        return $this->enabled;
    }
public function isEnabled ( ) { if ( $ this -> enabled === null ) { $ environments = config ( 'songshenzong-log.env' , [ 'dev' , 'local' , 'production' ] ) ; $ this -> enabled = in_array ( env ( 'APP_ENV' ) , $ environments , true ) ; } return $ this -> enabled ; }
Check if is enabled

@return boolean
Check if is enabled