2
I’m having a problem following, I made a API
and I get one back array
:
"id": 1,
"email": "[email protected]",
"senha": "lucas123",
"created_at": "2018-02-15 16:48:12",
"updated_at": "2018-02-15 16:48:12"`
and would like you to return only 3 fields id
,email
and senha
Method:
public function index()
{
$contas = login::all();
return response()->json(['contas'=>$contas], 200);
}
Please enter the code for
controller
, the image makes it very difficult.– novic
Opa yes! I will send only the index method can be ?
– Luska Zimmermann