Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> $order = ServiceOrder::with(['serviceOrderItem.serviceType', 'serviceOrderItem.customerOrderAsset', 'customer'])->find(2); [!] Aliasing 'ServiceOrder' to 'App\Models\ServiceOrder' for this Tinker session.
- => App\Models\ServiceOrder {#804
- id: 2,
- customer_id: 1,
- delivery_date: "2010-11-01",
- delivery_time: null,
- notification_check: 0,
- sub_price: "123.00",
- total_price: "900.00",
- discount: "234.00",
- description: null,
- created_at: "2018-01-18 19:30:40",
- updated_at: "2018-01-18 19:30:40",
- serviceOrderItem: Illuminate\Database\Eloquent\Collection {#807
- all: [
- App\Models\ServiceOrderItem {#814
- id: 1,
- service_order_id: 2,
- customer_service_asset_id: 1,
- description: null,
- price: "786.00",
- service_type_id: 1,
- created_at: "2018-01-18 19:30:40",
- updated_at: "2018-01-18 19:30:40",
- serviceType: App\Models\ServiceType {#818
- id: 1,
- name: "CYKLO - Malý servis",
- timeConsumption: 100,
- description: null,
- created_at: "2018-01-10 13:52:56",
- updated_at: "2018-01-10 13:52:56",
- },
- customerOrderAsset: App\Models\CustomerServiceAsset {#819
- id: 1,
- customer_id: 1,
- name: "Rock Machine XC900 2016",
- created_at: "2017-09-28 16:32:39",
- updated_at: "2017-06-28 00:59:18",
- },
- },
- App\Models\ServiceOrderItem {#815
- id: 2,
- service_order_id: 2,
- customer_service_asset_id: 1,
- description: null,
- price: "78.00",
- service_type_id: 1,
- created_at: "2018-01-18 19:30:40",
- updated_at: "2018-01-18 19:30:40",
- serviceType: App\Models\ServiceType {#818},
- customerOrderAsset: App\Models\CustomerServiceAsset {#819},
- },
- App\Models\ServiceOrderItem {#816
- id: 3,
- service_order_id: 2,
- customer_service_asset_id: 3,
- description: null,
- price: "7867.00",
- service_type_id: 1,
- created_at: "2018-01-18 19:30:40",
- updated_at: "2018-01-18 19:30:40",
- serviceType: App\Models\ServiceType {#818},
- customerOrderAsset: App\Models\CustomerServiceAsset {#822
- id: 3,
- customer_id: 1,
- name: "Apache Tanka Tate 2017 červená",
- created_at: "2017-10-21 23:42:20",
- updated_at: "2017-01-27 16:59:05",
- },
- },
- App\Models\ServiceOrderItem {#817
- id: 4,
- service_order_id: 2,
- customer_service_asset_id: 3,
- description: null,
- price: "7867.00",
- service_type_id: 1,
- created_at: "2018-01-18 19:30:40",
- updated_at: "2018-01-18 19:30:40",
- serviceType: App\Models\ServiceType {#818},
- customerOrderAsset: App\Models\CustomerServiceAsset {#822},
- },
- ],
- },
- customer: App\Models\Customer {#831
- id: 1,
- firstName: "Martin",
- lastName: "Adam",
- street: "U C56789ka 378",
- city: "JNIBIUJ",
- zip: "25073",
- mobileNumber: "777666555",
- secondNumber: "224252524",
- email: "martin@enapp.cz",
- isVip: 0,
- birthDate: "06.07.1777",
- deleted_at: null,
- created_at: "2017-10-29 06:34:57",
- updated_at: "2018-01-18 20:38:10",
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement