我一般使用这样的响应语法:
return response()
->json(['request'=> $data,
'response' => $response,
'client' => $client], 200);
Run Code Online (Sandbox Code Playgroud)
我怎么能做到呢gzip?
我在mySQL DB中有2个表:A和B.
a,b,c列.
表A:
a(1) = 1
a(2) = 2
a(3) = 3
Run Code Online (Sandbox Code Playgroud)
表B:
a(1) = 1
a(2) = 2
Run Code Online (Sandbox Code Playgroud)
所以,我们可以看到在B表中没有a = 3的行.我怎么能请求DB找到它?
所以响应(一行)可能看起来像:
a(1) = 3
b(1) =..
c(1) =..
Run Code Online (Sandbox Code Playgroud)