findOrFail($host); if ($host->databases()->count() > 0) { throw new HasActiveServersException(trans('exceptions.databases.delete_has_databases')); } return $host->delete(); } }