Posts by Deigon Prates • 1 point
2 posts
-
0
votes1
answer47
viewsA: UPDATE update without affecting all table rows without ID
Placing various conditions on WHERE and a limit on 1 EX: UPDATE usuarios set name = 'SEU NOME' WHERE CPF = '123' and IDADE = '13' and RG = '433' and SOBRENOME = 'SOBRENOME' LIMIT 1…
-
0
votes2
answers262
viewsA: Return array of properties in the Laravel
public function avisarAnjos(Request $request) { $usuariosAnjos = User::where(['usuario_anjo'=>'1'])->get(['email']); return response()->json($usuariosAnjos); } …