convert response to json laravel code example
Example 1: convert json string to json object in laravel
$manage = json_decode($request->stdin, true);
print_r($manage);
Example 2: php laravel return json response
return response()->json([
'name' => 'Abigail',
'state' => 'CA'
]);
Example 3: laravel json response
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);