芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/resources/installer/src/Helpers/Helper.php
driver('file')->get($this->cache_key); } if(cache()->driver('file')->get($this->cache_key)) { $cache = cache()->driver('file')->get($this->cache_key); $data = array_merge($cache,$data); cache()->driver('file')->put($this->cache_key,$data,111600); }else { cache()->driver('file')->put($this->cache_key,$data,111600); } } public function client() { $url = new URLHelper(); return [ 'client' => $url->base_get(), ]; } public function connection(array $data) { $url = new URLHelper(); $connection_response = Http::acceptJson()->post($url->getConnection(),$data); if($connection_response->failed()) { $message = $connection_response->collect()->get('data')['message'] ?? ""; throw new Exception($message); } } public function signature(string|array $data) { if(is_string($data)) return base64_encode($data); $data = json_encode($data); return base64_encode($data); } public function generateAppKey() { return Artisan::call("key:generate"); } }