Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

laravel json

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

//now decode
$response = json_decode($response->getContent()) ;
 
PREVIOUS NEXT
Tagged: #laravel #json
ADD COMMENT
Topic
Name
2+1 =