laravel 6 – how to add new object in get all records

  laravel, laravel-6

enter image description here
enter image description here

Postman return response

enter image description here

I need to add an array field after "transaction_type": null, "repay": true

if "payment_status": payment_pending

Source: Laravel

Leave a Reply