I have to table, one is users table and other is Invoice table(has user_id), i have performed soft delete on users table for a user, its record is updated, my problem here is when i try to do
Invoice::with([user])->get()
i get invoice with empty user data, but i do not invoice data for soft deleted user, have anyone come across such?
#Soft Deletes
4 messages · Page 1 of 1 (latest)
https://laravel.com/docs/10.x/eloquent-relationships#other-aggregate-functions
haven't tried the function yet, but thinking withExists should solve your issue
thank you sir