laravel jsonResponse code example Example: laravel json response return response()->json([ 'name' => 'Abigail', 'state' => 'CA', ]);