allocations() ->whereIn('id', $request->validated('ids', [])) ->get(); foreach ($allocations as $allocation) { $deletions->delete($allocation); Activity::event('admin:node-allocation.delete') ->subject($allocation) ->property('address', $allocation->ip) ->property('port', $allocation->port) ->log(); } return $this->returnNoContent(); } }