Answers for "laravel request()-> json decode"

2

how get value of json encode in laravel

$json = '{"countryId":"84","productId":"1","status":"0","opId":"134"}';
$json = json_decode($json, true);
echo $json['countryId'];
echo $json['productId'];
echo $json['status'];
echo $json['opId'];
Posted by: Guest on April-12-2021
1

Laravel json response

return response()->json($array);
Posted by: Guest on May-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language