nodes()->exists()) { throw new HasActiveNodesException(trans('exceptions.locations.has_nodes')); } $location->delete(); } }