Laravel Data Return di JSON

return response()->json([
    'name' => 'Abigail',
    'state' => 'CA',
]);
Witty Wombat