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