Laravel retourne JSON Response
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
Witty Wombat
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
return response()->json($array);
return Response::json([
'hello' => $value
], 201); // Status code here