ok you have two options, maybe you could use an accessor or update your relationship activity some...
why your using first()?..can u try this? $customers = Customer::with('activity')->orderBy('update...
The Laravel portal for problem solving, knowledge sharing and community building.