data["active_test"] = "active"; } public function method(Request $request, $method) { return call_user_func([$this, $method], $request); } public function test() { $a = new StorageService(); $b = Station::query()->where("station_type_id",5)->whereNotNull("parent_id")->get(); $a->clearTask(array_column($b->toArray(),"code")); } public function _stationCacheLightOff($locCode) { if (!$locCode) return null; $params = [ "areaCode" => "1004", 'locCode' => $locCode, 'PTLAction' => 0, ]; $response = Http::post(config('api.haiq.storage.light'), $params); return json_decode($response->body()); } }