auth(env('SSDB_AUTH')); // }catch(\Exception $e){ // dd($e); // } //} /** * @throws \Exception */ public static function client($host=null, $port=null) { $host = $host??env('SSDB_HOST'); $port = $port??env('SSDB_PORT'); try { $SSDB = new SimpleSSDB($host, $port); $SSDB->auth(env('SSDB_AUTH')); } catch (\Exception $e) { throw new \Exception('SSDB:' . $e->getMessage()); } return $SSDB; } }