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