validate([ 'func' => 'required|string|max:255', ]); $response = $module->remote($request->func, $request->all()); return $this->apiResponse($response[0], $response[1]); } }