Laravel Data Return in JSON

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