Is there any other way to eager load the modal relation and avoid having ['invoicePayments'] array selector?
fx:
$payment->load(['invoice.source', 'invoice.user'])
->getRelations()['invoicePayments'];
The main reason is like this for now is because I am using model binding injection, so my method is just function getInvoicePayments(Payment $payment) but I feel this array selection is wrong, but I can't think in any other solution for it? any ideas?