return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
return Response::json([
'hello' => $value
], 201); // Status code here
return response()->json($array);
Route::get('/status', function () {
return response(["success" => true])->header('Content-Type', 'application/json');
});