Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.59 KB | None | 0 0
  1. >>> $order = ServiceOrder::with(['serviceOrderItem.serviceType', 'serviceOrderItem.customerOrderAsset', 'customer'])->find(2); [!] Aliasing 'ServiceOrder' to 'App\Models\ServiceOrder' for this Tinker session.
  2. => App\Models\ServiceOrder {#804
  3.      id: 2,
  4.      customer_id: 1,
  5.      delivery_date: "2010-11-01",
  6.      delivery_time: null,
  7.      notification_check: 0,
  8.      sub_price: "123.00",
  9.      total_price: "900.00",
  10.      discount: "234.00",
  11.      description: null,
  12.      created_at: "2018-01-18 19:30:40",
  13.      updated_at: "2018-01-18 19:30:40",
  14.      serviceOrderItem: Illuminate\Database\Eloquent\Collection {#807
  15.        all: [
  16.          App\Models\ServiceOrderItem {#814
  17.            id: 1,
  18.            service_order_id: 2,
  19.            customer_service_asset_id: 1,
  20.            description: null,
  21.            price: "786.00",
  22.            service_type_id: 1,
  23.            created_at: "2018-01-18 19:30:40",
  24.            updated_at: "2018-01-18 19:30:40",
  25.            serviceType: App\Models\ServiceType {#818
  26.              id: 1,
  27.              name: "CYKLO - Malý servis",
  28.              timeConsumption: 100,
  29.              description: null,
  30.              created_at: "2018-01-10 13:52:56",
  31.              updated_at: "2018-01-10 13:52:56",
  32.            },
  33.            customerOrderAsset: App\Models\CustomerServiceAsset {#819
  34.              id: 1,
  35.              customer_id: 1,
  36.              name: "Rock Machine XC900 2016",
  37.              created_at: "2017-09-28 16:32:39",
  38.              updated_at: "2017-06-28 00:59:18",
  39.            },
  40.          },
  41.          App\Models\ServiceOrderItem {#815
  42.            id: 2,
  43.            service_order_id: 2,
  44.            customer_service_asset_id: 1,
  45.            description: null,
  46.            price: "78.00",
  47.            service_type_id: 1,
  48.            created_at: "2018-01-18 19:30:40",
  49.            updated_at: "2018-01-18 19:30:40",
  50.            serviceType: App\Models\ServiceType {#818},
  51.            customerOrderAsset: App\Models\CustomerServiceAsset {#819},
  52.          },
  53.          App\Models\ServiceOrderItem {#816
  54.            id: 3,
  55.            service_order_id: 2,
  56.            customer_service_asset_id: 3,
  57.            description: null,
  58.            price: "7867.00",
  59.            service_type_id: 1,
  60.            created_at: "2018-01-18 19:30:40",
  61.            updated_at: "2018-01-18 19:30:40",
  62.            serviceType: App\Models\ServiceType {#818},
  63.            customerOrderAsset: App\Models\CustomerServiceAsset {#822
  64.              id: 3,
  65.              customer_id: 1,
  66.              name: "Apache Tanka Tate 2017 červená",
  67.              created_at: "2017-10-21 23:42:20",
  68.              updated_at: "2017-01-27 16:59:05",
  69.            },
  70.          },
  71.          App\Models\ServiceOrderItem {#817
  72.            id: 4,
  73.            service_order_id: 2,
  74.            customer_service_asset_id: 3,
  75.            description: null,
  76.            price: "7867.00",
  77.            service_type_id: 1,
  78.            created_at: "2018-01-18 19:30:40",
  79.            updated_at: "2018-01-18 19:30:40",
  80.            serviceType: App\Models\ServiceType {#818},
  81.            customerOrderAsset: App\Models\CustomerServiceAsset {#822},
  82.          },
  83.        ],
  84.      },
  85.      customer: App\Models\Customer {#831
  86.        id: 1,
  87.        firstName: "Martin",
  88.        lastName: "Adam",
  89.        street: "U C56789ka 378",
  90.        city: "JNIBIUJ",
  91.        zip: "25073",
  92.        mobileNumber: "777666555",
  93.        secondNumber: "224252524",
  94.        email: "martin@enapp.cz",
  95.        isVip: 0,
  96.        birthDate: "06.07.1777",
  97.        deleted_at: null,
  98.        created_at: "2017-10-29 06:34:57",
  99.        updated_at: "2018-01-18 20:38:10",
  100.      },
  101.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement