Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. $rfq = RequestForQuote::find('5e5a12b9ac67be605d70bb82');
  2. error_log('************* REQUESTOFRQUOTE *********');
  3. error_log($rfq->toJson(JSON_PRETTY_PRINT));
  4.  
  5. foreach($rfq->vendor_request_for_quotes as $region) {
  6. error_log('**************** VENDORREQUEST_FOR_QUOTES ******************');
  7. error_log($region->toJson(JSON_PRETTY_PRINT));
  8. foreach($region->response_to_quotes as $response ) {
  9. error_log('************************** RESPONSE_TO_QUOTE ******************');
  10. error_log($response->toJson(JSON_PRETTY_PRINT));
  11. foreach($response->response_to_quote_regions as $res_region) {
  12. error_log('***************** RESPONSE_TO_QUOTE_REGION');
  13. error_log($res_region->toJson(JSON_PRETTY_PRINT));
  14. foreach($res_region->response_to_quote_items as $sub_item) {
  15. error_log('****************** RESPONSE_TO_QUOTE_ITEMS');
  16. error_log($sub_item->toJson(JSON_PRETTY_PRINT));
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement