relationLoaded('invoice_items')) { $invoice->load('invoice_items'); } return $invoice; } }