Q:

laravel json response

return response()->json(['name' => 'Abigail', 'state' => 'CA']);
0
return response()->json([
    'name' => 'Abigail',
    'state' => 'CA'
]);
0
return response()->json([
    'name' => 'Abigail',
    'state' => 'CA',
]);
0
return Response::json([
    'hello' => $value
], 201); // Status code here
0

New to Communities?

Join the community