update(['allocation_id' => $allocation->id]); Activity::event('server:allocation.primary') ->subject($server, $allocation) ->property('allocation', $allocation->toString()) ->log(); // The allocation row is unchanged, but a loaded server relation still holds the old primary. return $allocation->unsetRelation('server'); } }