Want to access all of our courses? (36 h 00 min)
You also get:
Already a member? Login here
Hi Povilas,
I followed your vidoes about softdeletes, it works fine.
Contacts page
@foreach ($contacts as $contact) Name : {{ $contact->name }} <br> Mobile : {{ $contact->name }} <br> Company : {{ $contact->company->name ?? null }} <br> @endforeach
I need to show $contact->company->name value even if i deleted. How to solve this ??
Thank you.
In Controller, Contact::withTrashed('company') from what I remember. Or add withTrashed() when defining the company relationship in Contact model.
Contact::withTrashed('company') - This method not working.
Thanks
Hi Povilas,
I followed your vidoes about softdeletes, it works fine.
Contacts page
I need to show $contact->company->name value even if i deleted. How to solve this ??
Thank you.
In Controller, Contact::withTrashed('company') from what I remember. Or add withTrashed() when defining the company relationship in Contact model.
Contact::withTrashed('company') - This method not working.
Thanks