php laravel return json response
snippet in php

php laravel return json response

user8595

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