how to get json response from laravel controllers function response code example
Example: response()->json(['data' => $allCheaters]) not getting back
return response()->json(['name' => 'Abigail', 'state' => 'CA']);
return response()->json(['name' => 'Abigail', 'state' => 'CA']);