icelander
327
13
Laravel

how to save json output into individual columns in my table in my database.

Posted 1 year ago by icelander

this is the json I get after I did dd($PaymentDetails); array:3 [▼ "status" => true "message" => "Verification successful" "data" => array:24 [▼ "id" => 39084499 "domain" => "test" "status" => "success" "reference" => "dn4wtVpVVKoxSlY4Vay5R6goj" "amount" => 800 "message" => null "gateway_response" => "Successful" "paid_at" => "2018-07-14T07:12:39.000Z" "created_at" => "2018-07-14T07:12:17.000Z" "channel" => "card" "currency" => "NGN" "ip_address" => "41.190.31.132" "metadata" => array:2 [▶] "log" => array:9 [▶] "fees" => 12 "fees_split" => null "authorization" => array:12 [▶] "customer" => array:8 [▶] "plan" => null "paidAt" => "2018-07-14T07:12:39.000Z" "createdAt" => "2018-07-14T07:12:17.000Z" "transaction_date" => "2018-07-14T07:12:17.000Z" "plan_object" => [] "subaccount" => [] ] ] below is my controller;

Please sign in or create an account to participate in this conversation.